/* digna home.

   A white page in the app's own neutrals. The digna navy is kept for the few things that
   act or carry the brand: the mark, the primary button, the send button, the line of a
   chart. The chat window borrows the app's own "Ask digna" panel, so what a visitor sees
   here is what they get there. Saturated colour otherwise means what it means in the app:
   red is an anomaly or a failed rule, green the usual range. The paper is not left bare:
   a faint sheet of cells, with a few tinted, lies behind the top of each page.

   The hero's one moving part is the chat window, which plays a conversation: the
   question is typed and sent, the agent works through its steps, answers with a chart,
   and acts once the person approves. */

/* Two subsets of one face: latin for English and German, latin-ext for the letters Polish
   adds (ą, ę, ł, ż, …), fetched only by a page that has them. */
@font-face {
    font-family: "Instrument Sans";
    src: url("/assets/vendors/instrument-sans/instrument-sans-latin-var.woff2") format("woff2");
    font-weight: 400 700;
    font-stretch: 75% 100%;
    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: "Instrument Sans";
    src: url("/assets/vendors/instrument-sans/instrument-sans-latin-ext-var.woff2") format("woff2");
    font-weight: 400 700;
    font-stretch: 75% 100%;
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --paper: #FFFFFF;
    --ink: #1A2430;
    --ink-2: #5D6A7A;
    --ink-3: #8995A2;
    --line: #E1E5EA;
    --wash: #F4F6F8;
    --wash-2: #EAEDF1;
    --sunk: #EDF0F4;

    --navy: #002C6B;
    --navy-hover: #001B45;
    --navy-wash: rgb(0 44 107 / 0.07);
    --sky: #8FB6F0;

    /* The app's chart range: its green status fill, held back to a tint. */
    --band: rgb(134 214 167 / 0.35);
    --ink-disabled: rgb(26 36 48 / 0.26);

    --red: #C0272D;
    --red-wash: rgb(192 39 45 / 0.12);
    --green: #0F7A46;

    /* The page's backdrop, drawn once and used wherever the paper shows: a sheet of
       hairline cells, as in a table of data, with a few of them tinted. `--sheet` is the
       wide sheet behind the top of a page, `--cells` the bare ruling for smaller patches. */
    --sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2296' height='952'%3E%3Cdefs%3E%3Cpattern id='g' width='56' height='56' patternUnits='userSpaceOnUse'%3E%3Cpath d='M.5 0v56M0 .5h56' fill='none' stroke='%23002C6B' stroke-opacity='.085'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='2296' height='952' fill='url(%23g)'/%3E%3Cg fill='%23002C6B'%3E%3Crect x='953' y='113' width='55' height='55' fill-opacity='0.035'/%3E%3Crect x='1009' y='113' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='729' y='57' width='55' height='55' fill-opacity='0.025'/%3E%3Crect x='1345' y='57' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='1737' y='113' width='55' height='55' fill-opacity='0.04'/%3E%3Crect x='1793' y='169' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='449' y='225' width='55' height='55' fill-opacity='0.035'/%3E%3Crect x='1849' y='337' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='393' y='449' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='1905' y='561' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='449' y='617' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='673' y='785' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='1513' y='785' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='225' y='113' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='2017' y='225' width='55' height='55' fill-opacity='0.03'/%3E%3Crect x='169' y='393' width='55' height='55' fill-opacity='0.02'/%3E%3Crect x='2129' y='449' width='55' height='55' fill-opacity='0.025'/%3E%3C/g%3E%3C/svg%3E");
    --cells: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M.5 0v56M0 .5h56' fill='none' stroke='%23002C6B' stroke-opacity='.085'/%3E%3C/svg%3E");

    --gutter: clamp(16px, 4vw, 48px);
    --masthead-height: 72px;

    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

p,
figure {
    margin: 0;
}


/* Backdrop ---------------------------------------------------------------- */

/* The top of every page sits on the sheet of cells, under a breath of the brand's blue.
   Both start below the masthead, which stays on plain paper, and fade back into it before
   the first screen ends. Neither takes a click or a place in the layout. */
body::before,
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: min(952px, 130svh);
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(ellipse max(44%, 380px) 46% at 78% 36%, rgb(143 182 240 / 0.2), transparent 72%),
        radial-gradient(ellipse max(38%, 320px) 40% at 12% 30%, rgb(0 44 107 / 0.04), transparent 72%);
}

body::after {
    background: var(--sheet) 50% 0 no-repeat;
    mask-image:
        linear-gradient(to bottom, transparent 48px, #000 220px),
        radial-gradient(ellipse 90% 64% at 50% 38%, #000 30%, transparent 100%);
    mask-composite: intersect;
}

a {
    color: inherit;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}


/* Masthead ---------------------------------------------------------------- */

.masthead__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: var(--masthead-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

/* digna's own logo, the arcs of its "d" and the wordmark, as one image. */
.brand__logo {
    display: block;
    width: auto;
    height: 29px;
}

.masthead__nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 8px;
    margin-right: auto;
}

/* A link of the bar that opens a panel of more under it. The item fills the bar's height,
   so the pointer reaches the panel without leaving the item. */
.navitem {
    position: relative;
    display: flex;
    align-items: center;
}

.masthead__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
}

.navitem:hover > .masthead__link,
.navitem:focus-within > .masthead__link {
    background: var(--wash);
    color: var(--ink);
}

.navitem__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.navitem:hover .navitem__chevron,
.navitem:focus-within .navitem__chevron {
    transform: rotate(180deg);
}

.navpanel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    gap: 40px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 20px 40px -16px rgb(26 36 48 / 0.25);
}

.navitem:hover > .navpanel,
.navitem:focus-within > .navpanel {
    display: flex;
}

.navpanel__heading {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.navpanel__list {
    display: grid;
    gap: 6px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 300px;
}

.navpanel__list--wide {
    grid-template-columns: repeat(2, 300px);
    width: auto;
}

.navleaf {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
}

.navleaf:hover,
.navleaf:focus-visible {
    background: var(--wash);
}

.navleaf__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--navy-wash);
    color: var(--navy);
}

.navleaf__icon .icon {
    width: 20px;
    height: 20px;
}

.navleaf__words {
    display: grid;
    gap: 2px;
    white-space: normal;
}

.navleaf__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.navleaf__text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--ink-3);
}

.masthead__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* Seven links and the longer German and Polish ones need the room: the bar closes up on a
   narrower screen, and below that the links fold into the menu before they can wrap. */
.masthead__link,
.masthead__cta {
    flex: none;
    white-space: nowrap;
}

@media (max-width: 1340px) {
    .masthead__inner {
        gap: 24px;
    }

    .masthead__nav {
        gap: 18px;
    }
}


/* Buttons ----------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.9375rem;
}

.button--primary {
    background: var(--navy);
    color: #FFFFFF;
}

.button--primary:hover {
    background: var(--navy-hover);
}

.button--secondary,
.button--quiet {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.button--secondary:hover,
.button--quiet:hover {
    border-color: var(--ink-3);
}


/* Hero -------------------------------------------------------------------- */


.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: min(calc(100svh - var(--masthead-height)), 920px);
    padding-block: clamp(24px, 4vh, 56px);
}

.hero__headline {
    max-width: 10ch;
    margin: 0 0 24px;
    font-size: clamp(2.75rem, 1.4rem + 3.7vw, 4.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero__subhead {
    max-width: 30ch;
    margin-bottom: 36px;
    font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
    line-height: 1.5;
    color: var(--ink-2);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 24px;
}


/* The chat window --------------------------------------------------------- */

.chat {
    width: 100%;
    max-width: 520px;
    transition: opacity 0.25s ease;
}

.chat.htmx-swapping {
    opacity: 0;
}

.chat__window {
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow:
        0 1px 2px rgb(26 36 48 / 0.05),
        0 12px 24px -8px rgb(26 36 48 / 0.08),
        0 40px 80px -24px rgb(0 44 107 / 0.16);
}

/* The app's lucide icons: drawn in their own colour's ink, at a 2px stroke. */
.icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat__bar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}

.chat__sparkles {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    color: var(--navy);
}

.chat__title {
    flex: 1;
    font-size: 0.8125rem;
    font-weight: 600;
}

.chat__button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--ink-2);
}

.chat__button svg {
    width: 18px;
    height: 18px;
}

/* New messages arrive at the bottom and push the earlier ones up and out of the top, as
   a chat does; the fade at the top is where they leave. */
.chat__thread {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    overflow: hidden;
    padding: 0 16px 16px;
    mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}

.chat__composer {
    flex: none;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.chat__suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.chat__suggestions-label {
    margin-right: 4px;
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.suggestion {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-2);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.suggestion:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}

.suggestion[aria-pressed="true"] {
    border-color: transparent;
    background: var(--navy-wash);
    color: var(--navy);
}

.chat__note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--ink-3);
}


/* Messages ---------------------------------------------------------------- */

/* A message takes no room until it arrives, then opens to its height, so everything above
   it moves up. */
.grow {
    --start: calc(var(--lead) + var(--at));
    --finish: calc(var(--lead) + var(--done, 0s));
    --approve-start: calc(var(--lead) + var(--approve, 0s));
    display: grid;
    grid-template-rows: 0fr;
    animation: grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) var(--start) forwards;
}

.grow__inner {
    min-height: 0;
    overflow: hidden;
}

/* A message that runs the full width of the window, out over the thread's side padding
   (which `.records` repeats inside). The message clips itself to grow open, so the bleed
   goes here rather than on what is inside. */
.grow--bleed {
    margin-inline: -16px;
}

.grow__inner > * {
    margin-top: 12px;
    animation: arrive 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) var(--start) both;
}

.bubble {
    width: fit-content;
    max-width: 85%;
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--wash-2);
    font-size: 0.8125rem;
}

/* A step reads as the app shows one: a small grey line, its spinner turning to a tick. */
.call {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px !important;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.call__state {
    position: relative;
    flex: none;
    width: 12px;
    height: 12px;
}

.call__spinner,
.call__tick {
    position: absolute;
    inset: 0;
}

.call__spinner {
    inset: 1px;
    border: 1.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation:
        spin 0.7s linear infinite,
        leave 0.15s ease var(--finish) forwards;
}

.call__tick {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) var(--finish) both;
}

.call__result {
    color: var(--ink-3);
    white-space: nowrap;
    animation: appear 0.3s ease var(--finish) both;
}

.call__result::before {
    content: "\00B7";
    margin-right: 6px;
}

.answer {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.answer strong {
    font-weight: 600;
}

/* The card a change waits in until someone answers it. */
.proposal {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.8125rem;
}

.proposal__heading {
    font-weight: 600;
}

.proposal__text {
    margin-top: 8px;
    color: var(--ink-2);
}

.proposal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.approve,
.later {
    display: inline-grid;
    place-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Both labels share one cell, so the button keeps its width as one replaces the other. */
.approve {
    background: var(--navy);
    color: #FFFFFF;
    animation: press 0.35s ease var(--approve-start) both;
}

.approve > span {
    grid-area: 1 / 1;
}

.approve__idle {
    animation: leave 0.15s ease var(--approve-start) forwards;
}

.approve__done {
    opacity: 0;
    animation: appear 0.2s ease calc(var(--approve-start) + 0.12s) forwards;
}

.later {
    border: 1px solid rgb(0 44 107 / 0.5);
    color: var(--navy);
    animation: dim 0.3s ease var(--approve-start) forwards;
}


/* The chart ---------------------------------------------------------------- */

.chart {
    padding-block: 4px;
}

.chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 16px;
    margin-bottom: 8px;
}

.chart__title {
    font-size: 0.75rem;
    font-weight: 600;
}

.chart__caption {
    font-size: 0.75rem;
    font-weight: 500;
}

/* An anomaly's caption is the problem, in red; a trend's is how far it moved, in green. */
.chart--anomaly .chart__caption {
    color: var(--red);
}

.chart--trend .chart__caption {
    color: var(--green);
}

.chart__plot {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart__grid {
    stroke: var(--wash-2);
    stroke-width: 1;
}

.chart__label {
    fill: var(--ink-3);
    font-size: 11px;
}

.chart__band {
    fill: var(--band);
    animation: appear 0.5s ease calc(var(--start) + 0.25s) both;
}

/* The fitted trend, dashed, laid over the line once it has drawn. */
.chart__trend {
    fill: none;
    stroke: var(--green);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    stroke-linecap: round;
    animation: appear 0.5s ease calc(var(--start) + 1.35s) both;
}

.chart__line {
    fill: none;
    stroke: var(--navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    animation: draw 1.1s cubic-bezier(0.45, 0, 0.2, 1) calc(var(--start) + 0.35s) both;
}

.chart__point {
    fill: var(--red);
    stroke: var(--paper);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--start) + 1.35s) both;
}

/* The flagged point keeps a slow pulse, so the eye finds it among the rest. */
.chart__halo {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: halo 2.4s ease-out calc(var(--start) + 1.5s) infinite both;
}

.chart__halo {
    fill: var(--red-wash);
}


/* The incident ticket the agent drafts: the same card as a change waiting for approval,
   with where it goes and its priority along the top, its title, and one line of details. */
.ticket {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.8125rem;
}

.ticket__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
}

.ticket__source {
    color: var(--ink-2);
}

.ticket__source .swap__after {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-weight: 500;
}

.ticket__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.ticket__priority {
    color: var(--red);
    font-weight: 500;
}

.ticket__title {
    margin-top: 6px;
    font-weight: 600;
}

.ticket__details {
    margin-top: 2px;
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--ink-2);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Two labels in one cell: the first leaves as the ticket is created and the second takes
   its place, without the line changing height. */
.swap {
    display: inline-grid;
}

.swap > span {
    grid-area: 1 / 1;
}

.swap__before {
    animation: leave 0.15s ease var(--approve-start) forwards;
}

.swap__after {
    opacity: 0;
    animation: appear 0.25s ease calc(var(--approve-start) + 0.15s) forwards;
}


/* Invalid records ---------------------------------------------------------- */

/* The records a rule failed, as the app's chat shows them: titled with the date, with a
   "Show records" button that is pressed and gives way to the grid. The grid runs the full
   width of the window, past the thread's side padding, with its title and footer kept in
   line with the messages. The column the rule checks is marked, so each row shows why it
   failed. */
.records {
    --open-start: calc(var(--lead) + var(--open));
    --inset: 16px;
}

.records__head,
.records__foot {
    padding-inline: var(--inset);
}

.records__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
}

.records__title {
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.records__show {
    display: inline-grid;
    flex: none;
    place-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgb(0 44 107 / 0.5);
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 500;
    animation:
        tap 0.3s ease var(--open-start) both,
        leave 0.15s ease calc(var(--open-start) + 0.2s) forwards;
}

.records__body {
    display: grid;
    grid-template-rows: 0fr;
    animation: grow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--open-start) + 0.2s) forwards;
}

.records__inner {
    min-height: 0;
    overflow: hidden;
}

.records__grid {
    width: 100%;
    margin-top: 10px;
    border-block: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.records__grid th,
.records__grid td {
    padding: 8px 10px;
}

.records__grid th:first-child,
.records__grid td:first-child {
    padding-left: var(--inset);
}

.records__grid th:last-child,
.records__grid td:last-child {
    padding-right: var(--inset);
}

.records__grid th,
.records__grid td {
    text-align: left;
    white-space: nowrap;
}

.records__grid .is-numeric {
    text-align: right;
}

.records__grid th {
    border-bottom: 1px solid var(--line);
    background: var(--sunk);
    color: var(--ink-2);
    font-weight: 600;
}

/* The column the rule checks is the one to read: its header is set in ink with a red
   dot, the others stay grey. */
.records__grid th.is-checked {
    color: var(--ink);
}

.records__grid th.is-checked::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--red);
    vertical-align: 2px;
}

.records__grid td {
    border-top: 1px solid var(--wash-2);
}

.records__grid tbody tr:first-child td {
    border-top: 0;
}

.records__grid td:first-child {
    color: var(--ink-2);
}

/* Each invalid value as the code it is, in a red chip. */
.records__bad {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgb(192 39 45 / 0.08);
    color: var(--red);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.6875rem;
    line-height: 1.5;
}

.records__grid tbody tr {
    animation: arrive 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--open-start) + 0.3s + var(--order) * 0.07s) both;
}

.records__foot {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--ink-3);
    animation: appear 0.3s ease calc(var(--open-start) + 0.7s) both;
}


/* The composer ------------------------------------------------------------ */

.composer {
    --type-start: calc(var(--lead) + var(--type-at));
    --sent-start: calc(var(--lead) + var(--sent-at));
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The app's filled field: grey at rest, white with a navy edge while the question is
   typed into it. */
.composer__field {
    position: relative;
    flex: 1;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--wash);
    font-size: 0.8125rem;
    line-height: 38px;
    animation:
        focus 0.15s ease var(--type-start) forwards,
        blur 0.15s ease var(--sent-start) forwards;
}

.composer__placeholder,
.composer__text {
    position: absolute;
    inset: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.composer__placeholder {
    color: var(--ink-3);
    animation:
        leave 0.01s linear var(--type-start) forwards,
        appear 0.2s ease var(--sent-start) forwards;
}

/* Typed out a character at a time, then cleared as the message is sent. */
.composer__text {
    clip-path: inset(0 100% 0 0);
    animation:
        type var(--type-seconds) steps(var(--characters)) var(--type-start) forwards,
        leave 0.12s ease var(--sent-start) forwards;
}

/* Greyed out while there is nothing to send. */
.composer__send {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--ink-disabled);
    animation:
        ready 0.2s ease var(--type-start) forwards,
        send 0.4s ease var(--sent-start) forwards;
}

.composer__send svg {
    width: 20px;
    height: 20px;
}


/* Motion ------------------------------------------------------------------ */

@keyframes grow {
    to { grid-template-rows: 1fr; }
}

@keyframes arrive {
    from { opacity: 0; translate: 0 8px; }
}

@keyframes appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes leave {
    to { opacity: 0; }
}

@keyframes dim {
    to { opacity: 0.4; }
}

@keyframes spin {
    to { rotate: 1turn; }
}

@keyframes pop {
    from { opacity: 0; scale: 0.4; }
}

@keyframes draw {
    from { stroke-dashoffset: 1; }
}

@keyframes halo {
    0%   { opacity: 0.9; scale: 0.6; }
    70%  { opacity: 0; scale: 1.5; }
    100% { opacity: 0; scale: 1.5; }
}

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

@keyframes ready {
    to { color: var(--navy); }
}

@keyframes send {
    0%   { color: var(--navy); background: var(--navy-wash); scale: 1; }
    40%  { scale: 0.88; }
    100% { color: var(--ink-disabled); background: transparent; scale: 1; }
}

@keyframes focus {
    to { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 1px var(--navy); }
}

@keyframes blur {
    from { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 1px var(--navy); }
    to   { border-color: var(--line); background: var(--wash); box-shadow: none; }
}

@keyframes tap {
    40% { scale: 0.94; background: var(--navy-wash); }
}

@keyframes press {
    40% { scale: 0.94; background: var(--navy-hover); }
}

/* The page's entrance: the copy settles in, then the window rises into place. */
@keyframes settle {
    from { opacity: 0; translate: 0 12px; }
}

.hero__headline {
    animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}

.hero__subhead {
    animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.hero .hero__actions {
    animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

.hero__stage {
    animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}


/* The rest of the site ===================================================== */

/* Every page past the hero is built from the same few parts: a page head, sections of
   benefit blocks, a split of words and a product view, and a closing invitation. The
   product views are drawn after the app's own screens, as the hero's chat is, so a page
   shows the product working rather than an illustration of it. */

/* The newest of digna's updates, over the masthead: one quiet line. */
.newsbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 36px;
    padding: 6px var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--wash);
    color: var(--ink-2);
    font-size: 0.8125rem;
    text-decoration: none;
}

.newsbar:hover .newsbar__title {
    color: var(--ink);
    text-decoration: underline;
}

.newsbar__label {
    flex: none;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--navy-wash);
    color: var(--navy);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.newsbar__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newsbar .icon {
    flex: none;
    width: 14px;
    height: 14px;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(255 255 255 / 0.88);
    backdrop-filter: saturate(1.4) blur(12px);
    transition: box-shadow 0.2s ease;
}

.masthead__link[aria-current="page"] {
    color: var(--ink);
}

/* The phone's menu: hidden on a wide screen, where the links sit in the bar. */
.menu {
    display: none;
    position: relative;
}

.menu__toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    list-style: none;
    cursor: pointer;
}

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

.menu__toggle svg {
    width: 20px;
    height: 20px;
}

.menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 4px;
    width: min(280px, calc(100vw - 2 * var(--gutter)));
    max-height: calc(100svh - var(--masthead-height) - 24px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 20px 40px -16px rgb(26 36 48 / 0.25);
}

.menu__link {
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
}

.menu__link:hover,
.menu__link[aria-current="page"] {
    background: var(--wash);
}

.menu__link--label {
    color: var(--ink-2);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.menu__link--label:hover {
    background: none;
}

.menu__link--sub {
    padding-block: 7px;
    padding-left: 28px;
    font-size: 0.9375rem;
    font-weight: 400;
}

.menu__panel .button {
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .menu {
        display: block;
    }

    .masthead__nav {
        display: none;
    }

    .masthead__inner {
        justify-content: space-between;
        gap: 12px;
    }

    .lang-select {
        margin-left: auto;
    }

    .masthead__cta {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .masthead__cta {
        display: none;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.eyebrow svg {
    width: 16px;
    height: 16px;
}

.lead {
    max-width: 46ch;
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-2);
}


/* Page head ---------------------------------------------------------------- */

.page-head {
    padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}

.page-head__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.page-head__title {
    max-width: 16ch;
    margin: 0 0 20px;
    font-size: clamp(2.375rem, 1.4rem + 2.8vw, 3.75rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-head--center {
    text-align: center;
}

.page-head--center .page-head__title,
.page-head--center .lead {
    margin-inline: auto;
}

.page-head .hero__actions {
    margin-top: 32px;
}

.page-head--center .hero__actions {
    justify-content: center;
}


/* Sections ----------------------------------------------------------------- */

.section {
    padding-block: clamp(64px, 9vw, 120px);
}

/* A tinted section carries a corner of the same sheet, fading in from its top right and
   ruled from the page's centre, as the sheet is, so the two line up where they meet. The
   section is its own layer, so the cells lie over its tint and under what it holds. */
.section--wash {
    position: relative;
    isolation: isolate;
    background: var(--wash);
}

.section--wash::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: min(100%, 504px);
    background: var(--cells) 50% 0;
    mask-image: radial-gradient(ellipse min(100%, 840px) 100% at 100% 0%, #000 10%, transparent 72%);
    pointer-events: none;
}

.section--rule {
    border-top: 1px solid var(--line);
}

.section__head {
    max-width: 720px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.section__head--center .lead {
    margin-inline: auto;
}

.section__title {
    margin: 0 0 16px;
    font-size: clamp(1.875rem, 1.3rem + 1.7vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section__title:last-child {
    margin-bottom: 0;
}


/* Benefit blocks: a heading and one sentence, with a small icon in the navy. */

.blocks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.blocks--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.block__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--navy);
}

.block__icon svg {
    width: 20px;
    height: 20px;
}

.block__title {
    margin: 0 0 6px;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.block__text {
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}


/* Cards that lead somewhere: the whole card is the link. */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.cards--compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.cards--compact .card {
    padding: 20px;
}

.cards--compact .card__text {
    display: none;
}

.cards--compact .card__title {
    flex: 1;
    font-size: 1rem;
}

.cards--compact .card__more {
    margin-top: 12px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, translate 0.2s ease;
}

a.card:hover {
    border-color: var(--ink-3);
    box-shadow: 0 12px 28px -14px rgb(0 44 107 / 0.22);
    translate: 0 -2px;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border-radius: 9px;
    background: var(--navy-wash);
    color: var(--navy);
}

.card__icon svg {
    width: 18px;
    height: 18px;
}

.card__kicker {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-3);
}

.card__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.card__text {
    flex: 1;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.card__more svg {
    width: 16px;
    height: 16px;
    transition: translate 0.15s ease;
}

a.card:hover .card__more svg {
    translate: 3px 0;
}


/* Split: words on one side, the product on the other. */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.split + .split {
    margin-top: clamp(72px, 10vw, 128px);
}

.split--flip > :first-child {
    order: 2;
}

.split__copy .section__title {
    font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
}

.checks {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

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

.checks svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--green);
}


/* The loop: digna finds, digna explains, a person decides. */

.loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: loop;
}

.loop__step {
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.loop__who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-3);
}

.loop__who::before {
    counter-increment: loop;
    content: counter(loop);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--navy-wash);
    color: var(--navy);
    font-size: 0.75rem;
}

.loop__step--you .loop__who::before {
    background: var(--navy);
    color: #FFFFFF;
}


/* The AI providers Ask digna runs on: a quiet label and a row of chips, each a link. */

.models {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: clamp(28px, 4vw, 40px);
}

.models__label {
    color: var(--ink-2);
    font-size: 0.875rem;
    font-weight: 500;
}

.models__chip {
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.models__chip:hover {
    border-color: var(--ink-3);
}


/* A technology's mark: its logo, or a plain icon where it has none, at the size of the
   text beside it; in a list, set on a small white tile. */

.mark {
    flex: none;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.mark--icon {
    color: var(--ink-2);
}

.chip .mark {
    width: 16px;
    height: 16px;
}

.eyebrow .mark {
    width: 18px;
    height: 18px;
}

.mark-tile {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
}

.mark-tile .mark {
    width: 20px;
    height: 20px;
}


/* Chips: the databases and channels digna works with, each with its mark. */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.875rem;
    font-weight: 500;
}

.chip svg {
    width: 16px;
    height: 16px;
    color: var(--ink-2);
}

.chips--center {
    justify-content: center;
}


/* Questions and answers, each opening in place. */

.faq {
    max-width: 820px;
    margin-inline: auto;
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.faq__question::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    rotate: 45deg;
    translate: 0 -3px;
    transition: rotate 0.2s ease, translate 0.2s ease;
}

.faq__item[open] .faq__question::after {
    rotate: 225deg;
    translate: 0 3px;
}

.faq__answer {
    max-width: 68ch;
    padding-bottom: 24px;
    color: var(--ink-2);
}


/* Statements: a few short claims set large, each with a line of proof. */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.fact {
    padding: 28px 24px;
    background: var(--paper);
}

.fact__value {
    display: block;
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.fact__label {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}


/* The same claims one under another, beside a customer's story. */

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

.facts--stack .fact__value {
    font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
    font-variant-numeric: tabular-nums;
}


/* What a customer said, under their story. */

.quote {
    margin-top: 32px;
    padding-left: 20px;
    border-left: 2px solid var(--navy);
}

.quote blockquote {
    margin: 0 0 12px;
    font-size: 1.125rem;
    line-height: 1.5;
}

.quote figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--ink-2);
    font-size: 0.875rem;
}

.quote__logo {
    width: auto;
    height: 20px;
}


.quote--wide {
    max-width: 720px;
    margin-top: 40px;
}

.quote--wide blockquote {
    font-size: 1.375rem;
    letter-spacing: -0.01em;
}


/* A customer story's page: who the customer is, in a card beside the headline, and its
   results as a table of words rather than marks. */

.quote--flush {
    margin-top: 0;
}

/* A video or an article to go on to: an icon and what it is. */
.watch {
    margin-top: 20px;
    font-size: 0.9375rem;
}

.watch a,
.watch-list a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
}

.watch a:hover span,
.watch a:hover,
.watch-list a:hover span {
    text-decoration: underline;
}

.watch .icon,
.watch-list .icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.watch-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.showcase__tour {
    margin-top: 18px;
    text-align: center;
}

.showcase__tour .icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
}

.page-head__title--wide {
    max-width: 22ch;
}

.story__logo {
    display: block;
    width: auto;
    height: 32px;
}

.story__profile {
    margin-top: 24px;
}

.story__profile .imprint__row {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
}

.story__profile .imprint__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.compare--text td {
    font-variant-numeric: tabular-nums;
}

.compare--text .compare__ours {
    font-weight: 600;
}


/* The company's years, as rows with a narrow first column, and who supports it. */

.imprint--years {
    margin-top: 0;
}

.imprint--years .imprint__row {
    grid-template-columns: 72px minmax(0, 1fr);
}

.imprint--years dt {
    color: var(--navy);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.backers {
    margin-top: 16px;
}

.split__copy .section__title + .section__title--small {
    margin-top: 40px;
}


/* The contact form, and the thanks that takes its place. */

.contact-next {
    margin-top: 40px;
}

.form {
    display: grid;
    gap: 16px;
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
    align-content: start;
}

.field label {
    font-size: 0.875rem;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    border-color: var(--navy);
    outline: 3px solid var(--navy-wash);
    outline-offset: 0;
}

.form .button {
    justify-self: start;
    cursor: pointer;
}

.form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__error {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--red-wash);
    color: var(--red);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form__note {
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.sent {
    display: grid;
    gap: 4px;
}

.sent .contact-card__title {
    margin-bottom: 8px;
}

.sent__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    color: var(--green);
}

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


/* The privacy policy: headed sections of plain paragraphs. */

.policy {
    display: grid;
    gap: 36px;
    margin-top: 48px;
    color: var(--ink-2);
    line-height: 1.65;
}

.policy__heading {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.policy p + p {
    margin-top: 12px;
}


/* The closing invitation, on every page but the contact page. */

.closing {
    padding-block: clamp(64px, 9vw, 112px);
}

.closing__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    text-align: center;
}

.closing__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cells) 50% 100%;
    mask-image: radial-gradient(ellipse at 50% 120%, #000 10%, transparent 70%);
}

.closing__card .section__title {
    margin-inline: auto;
    max-width: 20ch;
}

.closing__card .lead {
    margin-inline: auto;
}

.closing__card .hero__actions {
    justify-content: center;
    margin-top: 32px;
}


/* A product view shown large under a centred page head. */

.showcase {
    padding-bottom: clamp(48px, 7vw, 96px);
}

.showcase__inner {
    position: relative;
    max-width: 1040px;
}

.showcase__note {
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 0.75rem;
    text-align: center;
}

.page-head__title--wide {
    max-width: 22ch;
}

/* The two sentences that open a page's body: what goes wrong, then what digna does, the
   second in the darker ink. */
.intro {
    max-width: 34ch;
    font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink-3);
    text-wrap: pretty;
}

.intro span {
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.text-link svg {
    width: 16px;
    height: 16px;
    transition: translate 0.15s ease;
}

.text-link:hover svg {
    translate: 3px 0;
}

.split__more {
    margin-top: 28px;
}

.split__view {
    display: flex;
    justify-content: center;
}

.split__view > * {
    width: 100%;
}

.center-link {
    margin-top: 32px;
    text-align: center;
}

.stack-lists {
    display: grid;
    gap: 28px;
}

.stack-lists__label {
    margin-bottom: 12px;
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}


/* Numbered steps in a row, joined by a hairline. */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps__item {
    position: relative;
}

.steps__number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
}

.steps__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 40px;
    right: -24px;
    height: 1px;
    background: var(--line);
}

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

    .steps__item::after {
        display: none;
    }
}

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


/* A page head with a live chat beside it: the hero's grid, without its full height. */

.hero__grid--page {
    min-height: 0;
    padding-block: clamp(48px, 7vw, 96px);
}

.hero__grid--page .lead {
    margin-bottom: 32px;
}

/* Questions people ask, as the grey bubbles they would type them in. */

.asks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.asks__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.asks__title svg {
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.asks__list {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asks__list .bubble {
    max-width: none;
    margin: 0;
    font-size: 0.9375rem;
    padding: 10px 14px;
}

/* A plain list of names, each with a line about it. */

.item-list {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    list-style: none;
}

.item-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}

.item-list__text {
    display: grid;
    gap: 2px;
}

.item-list li + li {
    border-top: 1px solid var(--line);
}

.item-list__text span {
    color: var(--ink-2);
    font-size: 0.875rem;
}

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


/* The switch between languages: a dropdown with the current language's code on its
   button, opening a list of every language by its own name. */

.lang-select {
    position: relative;
}

.lang-select__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-select__toggle::-webkit-details-marker {
    display: none;
}

.lang-select__toggle:hover,
.lang-select[open] .lang-select__toggle {
    border-color: var(--ink-3);
    color: var(--ink);
}

.lang-select__toggle svg {
    width: 16px;
    height: 16px;
}

.lang-select__chevron {
    width: 14px !important;
    height: 14px !important;
    color: var(--ink-3);
    transition: transform 0.15s ease;
}

.lang-select[open] .lang-select__chevron {
    transform: rotate(180deg);
}

.lang-select__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 2px;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 20px 40px -16px rgb(26 36 48 / 0.25);
    list-style: none;
}

.lang-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.lang-select__option:hover {
    background: var(--wash);
    color: var(--ink);
}

.lang-select__option[aria-current="true"] {
    color: var(--ink);
}

.lang-select__option svg {
    width: 16px;
    height: 16px;
    color: var(--navy);
}

.footer__langs {
    display: flex;
    gap: 14px;
}

/* The ways out of the site: the documentation, and digna elsewhere. */
.footer__out {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.footer__social {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--ink-2);
}

.footer__social:hover {
    background: var(--wash);
    color: var(--ink);
}

.footer__social .icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 760px) {
    .footer__out {
        margin-left: 0;
    }
}

.footer__langs a {
    color: var(--ink-3);
    text-decoration: none;
}

.footer__langs a:hover,
.footer__langs a[aria-current="true"] {
    color: var(--ink);
}


.section--tight {
    padding-block: 0 clamp(56px, 8vw, 96px);
}

.section__title--small {
    font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
}

.split--top {
    align-items: start;
}

.split--wide-view {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.prose {
    display: grid;
    gap: 18px;
    max-width: 60ch;
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.65;
}


/* A short list of claims in a card, each a bold line over a plain one. */

/* The logo strips under the hero: customers, then technologies, each a row drifting past
   with its ends faded out. */

.logos {
    padding-block: clamp(28px, 4vw, 44px) clamp(40px, 6vw, 64px);
    border-top: 1px solid var(--line);
}

.logos__label {
    margin: 0 0 16px;
    color: var(--ink-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

/* The technology strip further down leads straight into the section under it, which
   brings its own space. */
.logos--plain {
    padding-block: clamp(40px, 5vw, 56px) 0;
}

.ticker {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}

.ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: ticker 48s linear infinite;
}

.ticker--reverse .ticker__track {
    animation-duration: 64s;
    animation-direction: reverse;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track {
    animation-play-state: paused;
}

/* Spacing as a margin on every item, not a gap, so the two copies are exactly the same
   width and the jump back to the start cannot be seen. */
.ticker__item {
    flex: none;
    margin-right: 64px;
}

.ticker--reverse .ticker__item {
    margin-right: 12px;
}

.ticker__logo {
    display: block;
    width: auto;
    height: var(--logo-height, 32px);
}

.ticker__chip {
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease;
}

.ticker__chip:hover {
    border-color: var(--ink-3);
}

@keyframes ticker {
    to { transform: translateX(-50%); }
}

/* Without motion, each row stands still, once, and wraps. */
@media (prefers-reduced-motion: reduce) {
    .ticker {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ticker__track {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 16px;
        width: auto;
        animation: none;
    }

    .ticker__item[aria-hidden="true"] {
        display: none;
    }
}

/* Sovereign by design: your network as a dashed navy boundary, named on its edge, with
   your teams, digna and your database joined inside it and the four points under them. A
   dot runs along each link, as the data does, without ever leaving the boundary. */

.sovereign__network {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(24px, 4vw, 40px);
    border: 1.5px dashed rgb(0 44 107 / 0.28);
    border-radius: 24px;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgb(0 44 107 / 0.045), transparent 70%),
        var(--paper);
}

.sovereign__boundary {
    position: absolute;
    top: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgb(0 44 107 / 0.18);
    border-radius: 999px;
    background: var(--paper);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    translate: -50% -50%;
}

.sovereign__boundary svg {
    width: 13px;
    height: 13px;
}

.sovereign__chain {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(32px, 4vw, 44px);
}

.sovereign__node {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgb(26 36 48 / 0.04);
}

.sovereign__node svg {
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.sovereign__node--digna {
    padding: 12px 20px;
    border-color: rgb(0 44 107 / 0.25);
    font-size: 1.0625rem;
    box-shadow: 0 12px 28px -12px rgb(0 44 107 / 0.35);
}

.sovereign__node--digna img {
    display: block;
    width: auto;
    height: 22px;
}

.sovereign__link {
    position: relative;
    flex: 1 1 auto;
    max-width: 120px;
    min-width: 28px;
    height: 0;
    border-top: 1.5px dashed rgb(0 44 107 / 0.3);
}

.sovereign__link::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy);
    animation: travel 2.8s ease-in-out infinite;
}

.sovereign__link + .sovereign__node + .sovereign__link::after {
    animation-direction: reverse;
    animation-delay: 1.4s;
}

@keyframes travel {
    0%, 10% { left: 0; opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    90%, 100% { left: calc(100% - 7px); opacity: 0; }
}

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

.sovereign__points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: clamp(24px, 3vw, 32px) 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.sovereign__points li {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 0 clamp(14px, 2vw, 24px);
}

.sovereign__points li + li {
    border-left: 1px solid var(--line);
}

.sovereign__points .block__icon {
    margin-bottom: 10px;
}

.sovereign__points strong {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sovereign__points span:last-child {
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .sovereign__points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }

    .sovereign__points li:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .sovereign__chain {
        flex-direction: column;
    }

    .sovereign__link {
        flex: none;
        width: 0;
        min-width: 0;
        height: 22px;
        border-top: 0;
        border-left: 1.5px dashed rgb(0 44 107 / 0.3);
    }

    .sovereign__link::after {
        display: none;
    }

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

    .sovereign__points li,
    .sovereign__points li + li {
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 14px;
        padding: 0;
        border-left: 0;
    }

    .sovereign__points .block__icon {
        grid-row: span 2;
        margin-bottom: 0;
    }
}

.trust {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    list-style: none;
}

.trust__item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 2px 14px;
    padding: 20px 24px;
}

.trust__item + .trust__item {
    border-top: 1px solid var(--line);
}

.trust__item::before {
    content: "";
    grid-row: span 2;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--navy-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002C6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.trust__item strong {
    font-weight: 600;
}

.trust__item span {
    color: var(--ink-2);
    font-size: 0.9375rem;
}


/* The modules that do a team's job, each a row leading to its page. */

.fits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fit {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.fit:hover {
    border-color: var(--ink-3);
}

.fit .card__icon {
    flex: none;
    margin: 0;
}

.fit__body {
    display: grid;
    flex: 1;
}

.fit__body .card__kicker {
    margin-bottom: 2px;
}

.fit__text {
    font-size: 0.9375rem;
}

.fit__arrow {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ink-3);
}


/* The integrations: a row per kind, its words on the left and its names on the right. */

.jump {
    margin-top: 32px;
}

.jump .chip {
    text-decoration: none;
}

.jump .chip:hover {
    border-color: var(--ink-3);
}

.groups {
    display: grid;
    gap: 0;
}

.group {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 80px);
    padding-block: 48px;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--masthead-height) + 16px);
}

.group__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.group__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.group__item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.group__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.group__item strong {
    font-weight: 600;
}

.group__text span {
    color: var(--ink-2);
    font-size: 0.8125rem;
}


/* Where data goes: your network as a dashed boundary round your teams, digna and your
   database, joined by a line; under it, what leaves the network. */

.flow {
    max-width: 980px;
    margin: 0 auto;
}

.flow__network {
    position: relative;
    padding: 40px clamp(16px, 3vw, 40px) 32px;
    border: 1.5px dashed var(--ink-3);
    border-radius: 20px;
    background: var(--paper);
}

.flow__boundary {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 0 10px;
    background: var(--wash);
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 600;
}

.flow__row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 56px);
}

.flow__row::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 12px);
    opacity: 0.35;
}

.flow__node {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 20px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    text-align: center;
}

.flow__node .block__icon {
    margin-bottom: 8px;
}

.flow__node img {
    margin-bottom: 8px;
    border-radius: 10px;
}

.flow__node strong {
    font-weight: 600;
}

.flow__node span:last-child {
    color: var(--ink-2);
    font-size: 0.875rem;
}

.flow__node--digna {
    border-color: rgb(0 44 107 / 0.35);
    box-shadow: 0 16px 32px -20px rgb(0 44 107 / 0.45);
}

.flow__out {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    gap: clamp(16px, 4vw, 56px);
    padding-top: 40px;
}

.flow__out::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    background: repeating-linear-gradient(180deg, var(--navy) 0 6px, transparent 6px 12px);
    opacity: 0.35;
}

.flow__node--optional {
    border-style: dashed;
}


/* The company page: the founders beside its headline, then the leadership team, each a
   portrait over a name, a role and one sentence. The portraits are small on purpose: they
   are drawn no larger than the files digna.ai has. */

.founders {
    justify-self: end;
    width: 100%;
    max-width: 520px;
}

.founders__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
    background: var(--wash);
    object-fit: cover;
}

.founders__caption {
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.people {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.person {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.person__photo {
    display: block;
    width: 140px;
    height: 130px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--wash);
    object-fit: cover;
}

.person__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.person__role {
    margin: 2px 0 10px;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
}

.offices {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.offices--row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
}

.office {
    display: grid;
    gap: 2px;
    color: var(--ink-2);
}

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

.legal {
    margin-top: 24px;
    color: var(--ink-3);
    font-size: 0.8125rem;
}


/* The contact page: the invitation on the left, what happens next on the right. */

.page-head__grid--top {
    align-items: start;
}

.reply-note {
    margin-top: 16px;
    color: var(--ink-3);
    font-size: 0.875rem;
}

.contact-card {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 24px 48px -32px rgb(0 44 107 / 0.3);
}

.contact-card__title {
    margin: 0 0 24px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* The contact card's two ways in, where both are there: picking a time, and the form. */

.card-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    border-radius: 12px;
    background: var(--wash);
}

.card-tabs__tab {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.card-tabs__tab:hover {
    color: var(--ink);
}

.card-tabs__tab.is-current {
    border-color: var(--line);
    background: var(--paper);
    color: var(--navy);
}

.card-tabs__tab:focus-visible {
    outline: 3px solid var(--navy-wash);
    outline-offset: 0;
}


/* The demo booking in the contact card: a time zone, two rows of days, the day's times. */

.booking .contact-card__title {
    margin-bottom: 8px;
}

.booking__lead {
    margin: 0 0 24px;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.booking__label {
    margin: 24px 0 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.booking__zone {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
}

.booking__zone label {
    grid-column: 1 / -1;
}

.booking__days,
.booking__times {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.booking__day,
.booking__time {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.booking__day:hover,
.booking__time:hover {
    border-color: var(--navy);
    background: var(--navy-wash);
}

.booking__day:focus-visible,
.booking__time:focus-visible {
    border-color: var(--navy);
    outline: 3px solid var(--navy-wash);
    outline-offset: 0;
}

.booking__day.is-selected {
    border-color: var(--navy);
    background: var(--navy-wash);
    color: var(--navy);
}

.booking__weekday {
    color: var(--ink-3);
    font-size: 0.75rem;
}

.booking__day.is-selected .booking__weekday {
    color: var(--navy);
}

.booking__date {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.booking__time {
    font-size: 0.9375rem;
    font-weight: 500;
}

.booking__none {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.booking__write {
    margin: 24px 0 0;
}

.booking__chosen {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--wash);
}

.booking__chosen .booking__label {
    margin: 0 0 4px;
    color: var(--ink-2);
}

.booking__when {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.booking__zone-name {
    margin: 2px 0 0;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.booking__change {
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
}

.sent .booking__zone-name {
    margin-bottom: 12px;
}

@media (max-width: 520px) {
    .booking__times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .booking__date {
        font-size: 0.8125rem;
    }
}


.contact-steps {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-steps li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
}

.contact-steps .steps__number {
    margin: 0;
}


/* Pricing: three cards, the modules' in the middle, and what is always included. */

.price {
    padding: 28px;
}

.price--main {
    border-color: rgb(0 44 107 / 0.35);
    box-shadow: 0 20px 40px -28px rgb(0 44 107 / 0.45);
}

.price .card__title {
    font-size: 1.25rem;
}

.price .card__text {
    flex: none;
}

.price__items {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: 0.9375rem;
}

.price__items li {
    display: flex;
    gap: 10px;
}

.price__items svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--green);
}

.included {
    margin-top: 48px;
    text-align: center;
}

.included__title {
    margin-bottom: 14px;
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-weight: 600;
}

.included .chip svg {
    color: var(--green);
}

@media (max-width: 920px) {
    .split--wide-view,
    .group {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

    .founders {
        justify-self: start;
    }

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

    .flow__row::before {
        top: 16px;
        bottom: 16px;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--navy) 0 6px, transparent 6px 12px);
    }

    .lang-select {
        margin-left: auto;
    }
}

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

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


/* Code, as a dark-on-light card: the one place the site shows commands. */

.code {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #F7F8FA;
}

.code__caption {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 500;
}

.code__body {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink);
}


/* The imprint: a narrow column of labelled lines. */

.narrow {
    max-width: 760px;
}

.imprint {
    margin: 40px 0 0;
    border-top: 1px solid var(--line);
}

.imprint__row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.imprint dt {
    color: var(--ink-3);
}

.imprint dd {
    margin: 0;
}

.footer__base a {
    color: inherit;
}

@media (max-width: 600px) {
    .imprint__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}


.group__item--link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.group__item--link:hover {
    border-color: var(--ink-3);
}

.group__arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--ink-3);
}

.eyebrow__link {
    color: inherit;
    text-decoration: none;
}

.eyebrow__link:hover {
    text-decoration: underline;
}

.spaced {
    margin-bottom: 32px;
}

.others {
    margin-top: 48px;
}

.others .chip {
    color: var(--ink-2);
    text-decoration: none;
}

.others .chip:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}


/* The comparison: kinds of tooling in columns, digna's set apart in the navy wash. */

.lead--wide {
    max-width: 60ch;
}

.compare {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.compare table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.compare th,
.compare td {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.compare thead th {
    border-top: 0;
    background: var(--wash);
    font-size: 0.875rem;
    font-weight: 600;
}

.compare tbody th {
    font-weight: 500;
    text-align: left;
}

.compare .compare__ours {
    background: var(--navy-wash);
}

.compare thead .compare__ours {
    color: var(--navy);
}

.mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    vertical-align: middle;
}

.mark--yes {
    background: rgb(15 122 70 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7A46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.mark--partly {
    background: rgb(154 91 0 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A5B00' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.mark--no {
    border: 1px dashed var(--ink-3);
}

.compare__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 0.8125rem;
}

.compare__legend .mark {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    background-size: 9px;
}

.compare__legend .mark:first-child {
    margin-left: 0;
}

.faq-groups {
    max-width: 820px;
}

.faq-groups__title {
    margin: 48px 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.faq-groups__title:first-child {
    margin-top: 0;
}

.faq-groups__title a {
    color: inherit;
    text-decoration: none;
}

.faq-groups__title a:hover {
    color: var(--navy);
}


/* Product views ------------------------------------------------------------- */

/* A screen of the app, simplified: its page header, summary cards and grids, at the
   app's own sizes (13px grids, 16px radii, flat cards with a hairline border). Saturated
   colour is status only, as in the app: green passed, amber uncertain, red failed, and a
   dashed grey outline for anything not tested. */

.view {
    --passed: #0F7A46;
    --passed-fill: #86D6A7;
    --uncertain: #9A5B00;
    --uncertain-fill: #DBA15A;
    --failed: #C0272D;
    --failed-fill: #D97872;
    --untested: #A9B2BC;
    --untested-fill: #DBE1E7;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow:
        0 1px 2px rgb(26 36 48 / 0.05),
        0 12px 24px -8px rgb(26 36 48 / 0.08),
        0 40px 80px -24px rgb(0 44 107 / 0.16);
    font-size: 0.8125rem;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.view--ground {
    background: #F4F6F9;
}

.view__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.view__dots {
    display: flex;
    gap: 6px;
    margin-right: 6px;
}

.view__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wash-2);
}

.view__title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.view__sub {
    color: var(--ink-2);
    font-size: 0.75rem;
}

.view__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.view__date strong {
    font-weight: 600;
}

.view__date span {
    color: var(--ink-3);
}

.view__body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.view__caption {
    padding: 0 2px;
    color: var(--ink-3);
    font-size: 0.75rem;
}


/* Status chips, as the app draws them. */

.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    font-size: 0.6875rem;
    font-weight: 700;
}

.status--passed {
    background: rgb(15 122 70 / 0.12);
    color: var(--passed, #0F7A46);
}

.status--passed::before {
    content: "\2713";
}

.status--uncertain {
    background: rgb(154 91 0 / 0.12);
    color: var(--uncertain, #9A5B00);
}

.status--uncertain::before {
    content: "?";
}

.status--failed {
    background: rgb(192 39 45 / 0.12);
    color: var(--failed, #C0272D);
}

.status--failed::before {
    content: "!";
}

.status--untested {
    border: 1px dashed var(--untested, #A9B2BC);
    color: var(--ink-3);
}

.status--neutral {
    background: rgb(26 36 48 / 0.08);
    color: var(--ink);
    font-weight: 500;
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--wash-2);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}


/* A summary card: a title, a thin bar of the status fills, and the counts under it. */

.summary {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(var(--tiles, 3), minmax(0, 1fr));
    gap: 10px;
}

.summary__card {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.summary__card--status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary__title {
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.summary__total {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.summary__total-label {
    color: var(--ink-2);
    font-size: 0.6875rem;
}

.donut {
    flex: none;
    width: 56px;
    height: 56px;
    rotate: -90deg;
}

.donut circle {
    fill: none;
    stroke-width: 9;
    stroke-linecap: butt;
}

.stack {
    display: flex;
    gap: 2px;
    height: 6px;
}

.stack span {
    min-width: 4px;
    border-radius: 3px;
}

.fill--passed { background: var(--passed-fill); stroke: var(--passed-fill); }
.fill--uncertain { background: var(--uncertain-fill); stroke: var(--uncertain-fill); }
.fill--failed { background: var(--failed-fill); stroke: var(--failed-fill); }
.fill--untested { background: var(--untested-fill); stroke: var(--untested-fill); }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 0.6875rem;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.legend i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}


/* A grid, as the app's data grids look: a grey header band, hairline rows. */

.grid {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.grid table {
    width: 100%;
    border-collapse: collapse;
}

.grid th,
.grid td {
    padding: 0 12px;
    height: 34px;
    text-align: left;
    white-space: nowrap;
}

.grid th {
    height: 34px;
    background: #EDF0F4;
    color: var(--ink-2);
    font-size: 0.75rem;
    font-weight: 600;
}

.grid td {
    border-top: 1px solid var(--line);
}

.grid .num {
    text-align: right;
}

.grid .muted {
    color: var(--ink-3);
}

.grid .strong {
    font-weight: 600;
}

.grid tr.is-flagged td {
    background: rgb(192 39 45 / 0.04);
}

.grid__link {
    color: var(--navy);
    font-weight: 500;
}

.grid__mono {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.75rem;
}


.grid__head,
.grid__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 10px 12px;
}

.grid__head {
    border-bottom: 1px solid var(--line);
}

.grid__foot {
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

.view__chart {
    padding: 14px 14px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.view .muted {
    color: var(--ink-3);
}

.view .strong {
    font-weight: 600;
}

.view .good {
    color: var(--green);
}


/* Figures in a row, each a label over its value. */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stats > div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.75rem;
}

.stats strong {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}


/* A table's structure changes, one per line. */

.changes {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.changes__head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.changes__list {
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.changes__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 12px;
}

.changes__arrow {
    color: var(--ink-3);
}

.changes__what {
    font-weight: 500;
}

.changes__what--bad {
    color: var(--red);
}


/* A source and its target side by side, with where their difference falls against
   what is allowed: the green band, and the marker well outside it. */

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

.reconcile__side {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.75rem;
}

.reconcile__side strong {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.reconcile__side--bad strong {
    color: var(--red);
}

.range {
    position: relative;
    grid-column: 1 / -1;
    height: 8px;
    margin: 6px 4px 4px;
    border-radius: 4px;
    background: var(--wash-2);
}

.range__band {
    position: absolute;
    inset: 0 44% 0 44%;
    border-radius: 4px;
    background: var(--band);
    box-shadow: 0 0 0 1px rgb(15 122 70 / 0.25);
}

.range__mark {
    position: absolute;
    top: 50%;
    left: 8%;
    width: 14px;
    height: 14px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--red);
    translate: -50% -50%;
    box-shadow: 0 0 0 4px var(--red-wash);
}


/* A short exchange with Ask digna, standing still: the question in its grey bubble and
   the answer under it, as the app's chat panel shows them. */

.exchange {
    max-width: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgb(26 36 48 / 0.05), 0 24px 48px -24px rgb(0 44 107 / 0.18);
}

.exchange .chat__bar {
    height: 48px;
}

.exchange__thread {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.exchange__thread .bubble {
    margin-top: 0;
}


/* A product view enters once, as it scrolls in; with less motion it is simply there. */

.view--enter .view__body > * {
    animation: settle 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
}


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

.footer {
    padding-block: 56px 40px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.875rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer__tagline {
    max-width: 26ch;
    margin-top: 14px;
    color: var(--ink-2);
}

.footer__heading {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__links a {
    color: var(--ink-2);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--ink);
}

.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 0.8125rem;
}


/* Small screens ----------------------------------------------------------- */

@media (max-width: 1080px) {
    .blocks--four,
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .page-head__grid,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .split--flip > :first-child {
        order: 0;
    }

    .blocks,
    .cards:not(.cards--compact),
    .loop {
        grid-template-columns: minmax(0, 1fr);
    }

    .blocks--two,
    .blocks--four,
    .cards--two,
    .cards--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .blocks--two,
    .blocks--four,
    .cards--two,
    .cards--three,
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }

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

@media (max-width: 920px) {
    :root {
        --masthead-height: 64px;
    }

    .masthead__nav {
        display: none;
    }

    .masthead__inner {
        justify-content: space-between;
        gap: 12px;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        min-height: 0;
        padding-block: 32px 48px;
    }

    .hero__headline {
        max-width: 12ch;
    }

    .chat {
        max-width: none;
    }

    .chat__window {
        height: 540px;
    }
}

/* On a phone the grid keeps the columns that say why a row failed. */
@media (max-width: 480px) {
    .records__grid th:first-child,
    .records__grid td:first-child {
        display: none;
    }

    .records__grid th:nth-child(2),
    .records__grid td:nth-child(2) {
        padding-left: var(--inset);
    }
}

/* The chart's labels are drawn in its own units, so they shrink with it: on a narrow
   window they are set larger to come out at a readable size. */
@media (max-width: 560px) {
    .chart__label {
        font-size: 19px;
    }
}


/* Less motion: every message is already in place, the conversation shows finished, and
   the window's poll (see its template) never fires. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .grow,
    .records__body {
        grid-template-rows: 1fr;
    }

    .records__show {
        display: none;
    }

    .call__spinner,
    .approve__idle,
    .composer__text,
    .chart__halo {
        display: none;
    }

    .approve__done,
    .swap__after {
        opacity: 1;
    }

    .swap__before {
        opacity: 0;
    }

    .later {
        opacity: 0.4;
    }
}


/* The product views on a narrow screen keep the columns that tell the story. */
@media (max-width: 720px) {
    .hide-narrow {
        display: none;
    }

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

    .summary__card--status {
        grid-column: 1 / -1;
    }

    .summary__card:nth-child(n + 4) {
        display: none;
    }

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

    .reconcile__side strong {
        font-size: 1rem;
    }

    .view__date {
        display: none;
    }

    .grid {
        overflow-x: auto;
    }
}


/* A chart drawn wide in a product view scales its labels with it; they are set smaller in
   the chart's own units so they come out at the size of the grid text around them. */
.view__chart .chart__label {
    font-size: 8px;
}

@media (max-width: 720px) {
    .view__chart .chart__label {
        font-size: 14px;
    }
}

.showcase + .section {
    padding-top: clamp(32px, 5vw, 64px);
}


/* Admin -------------------------------------------------------------------- */

/* The page for people at digna: who visits the site. Denser than the pages around it and
   as quiet: white panels with a hairline, the navy only in the bars. */

.admin {
    padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.admin__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 32px;
}

.admin__title {
    margin: 0;
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.admin__covers,
.admin__note {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.admin__note {
    max-width: 72ch;
    margin: 0 0 16px;
}

.admin__part {
    margin-top: clamp(32px, 4vw, 48px);
}

.admin__part + .admin__note {
    margin-top: 32px;
}

.admin__part-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.admin-ranges {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--wash);
}

.admin-ranges a {
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
}

.admin-ranges a:hover {
    color: var(--ink);
}

.admin-ranges a[aria-current] {
    background: var(--paper);
    color: var(--navy);
    box-shadow: 0 1px 2px rgb(26 36 48 / 0.12);
}

/* People and bots, each a tab: links under the head, the current one underlined. */
.admin-tabs {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    border-bottom: 1px solid var(--line);
}

.admin-tabs a {
    margin-bottom: -1px;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
}

.admin-tabs a:hover {
    color: var(--ink);
}

.admin-tabs a[aria-current] {
    border-bottom-color: var(--navy);
    color: var(--navy);
}

.admin-tabs + .admin__part {
    margin-top: 20px;
}

.admin__part .admin-grid + .admin__part-title {
    margin-top: 32px;
}

.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}

.admin-tile,
.admin-panel {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.admin-tile {
    display: flex;
    flex-direction: column;
}

.admin-tile__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-2);
}

.admin-tile__value {
    margin: 2px 0 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.admin-tile__hint {
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--ink-3);
}

.admin-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

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

.admin-grid--shares {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.admin-panel__title {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.admin-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-3);
}

.admin-chart {
    margin-bottom: 12px;
}

.admin-grid .admin-chart {
    margin-bottom: 0;
}

.admin-chart__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-chart__head .admin-panel__title {
    margin: 0;
}

.admin-chart__total {
    font-size: 1.125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.admin-chart__peak {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ink-3);
}

.admin-chart__plot {
    display: block;
    width: 100%;
    height: 120px;
    border-bottom: 1px solid var(--line);
}

.admin-chart__hit {
    fill: transparent;
}

.admin-chart__bar {
    fill: var(--navy);
}

.admin-chart__slot:hover .admin-chart__hit {
    fill: var(--wash-2);
}

.admin-chart__slot:hover .admin-chart__bar {
    fill: var(--navy-hover);
}

.admin-chart__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.admin-share {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-share__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    font-size: 0.875rem;
}

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

.admin-share__percent {
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.admin-share__track {
    grid-column: 1 / -1;
    height: 6px;
    border-radius: 3px;
    background: var(--wash-2);
}

.admin-share__bar {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 3px;
    background: var(--navy);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    padding: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-3);
    text-align: left;
}

.admin-table td {
    padding: 7px 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.admin-table td + td,
.admin-table th + th {
    padding-left: 16px;
}

.admin-table .admin-table__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-table .admin-table__quiet {
    color: var(--ink-2);
}

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

    .admin-ranges {
        width: 100%;
    }

    .admin-ranges a {
        flex: 1;
        padding-inline: 6px;
        text-align: center;
    }
}


/* The blog --------------------------------------------------------------------

   The list is cards, each an article's picture over its date, title and what it is about.
   An article is one column of text at a reading width; its pictures and tables keep to
   that column, and a table too wide for it scrolls inside its own box. */

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    text-decoration: none;
}

.post-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--wash);
    object-fit: cover;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.post-card:hover .post-card__image {
    border-color: var(--ink-3);
    box-shadow: 0 12px 28px -14px rgb(0 44 107 / 0.22);
}

.post-card__meta {
    color: var(--ink-3);
    font-size: 0.8125rem;
    font-weight: 500;
}

.post-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.post-card:hover .post-card__title {
    color: var(--navy);
}

.post-card__text {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* The blog's two lists, as a row of two: the one shown is filled in navy. */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tabs__tab {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.tabs__tab:hover {
    border-color: var(--ink-3);
    color: var(--ink);
}

.tabs__tab[aria-current="page"] {
    border-color: var(--navy);
    background: var(--navy);
    color: #FFFFFF;
}

.pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
}

.pager > :last-child {
    justify-self: end;
}

.pager > :first-child {
    justify-self: start;
}

.pager__at {
    color: var(--ink-3);
    font-size: 0.875rem;
}

.shell--article {
    max-width: calc(760px + 2 * var(--gutter, 24px));
}

.article__head {
    padding-bottom: clamp(28px, 4vw, 44px);
}

.article__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.article__meta {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9375rem;
}

.article__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--wash);
    object-fit: cover;
}

.article__body {
    padding-bottom: clamp(56px, 8vw, 96px);
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.article__body > * {
    margin-block: 0 20px;
}

.article__body h2,
.article__body h3,
.article__body h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;
    /* A link to the heading lands below the masthead, not under it. */
    scroll-margin-top: 96px;
}

.article__body h2 {
    margin-block: 48px 16px;
    font-size: 1.625rem;
}

.article__body h3 {
    margin-block: 32px 12px;
    font-size: 1.25rem;
}

.article__body h4 {
    margin-block: 24px 8px;
    font-size: 1.0625rem;
}

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

.article__body a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: rgb(0 44 107 / 0.3);
    text-underline-offset: 3px;
}

.article__body a:hover {
    text-decoration-color: currentColor;
}

.article__body ul,
.article__body ol {
    padding-left: 1.4em;
}

.article__body li {
    margin-block: 6px;
}

.article__body li > ul,
.article__body li > ol {
    margin-block: 6px 0;
}

.article__body li > p {
    margin-block: 0 8px;
}

.article__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-block: 32px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.article__body blockquote {
    margin-inline: 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--navy);
    color: var(--ink);
    font-size: 1.125rem;
}

.article__body blockquote > :last-child {
    margin-bottom: 0;
}

.article__body code {
    padding: 0.1em 0.35em;
    border-radius: 5px;
    background: var(--wash);
    color: var(--ink);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.875em;
}

.article__body pre {
    overflow-x: auto;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--wash);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.article__body pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.article__body hr {
    margin-block: 40px;
    border: 0;
    border-top: 1px solid var(--line);
}

.article__video {
    margin: 28px 0;
}

.article__video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    background: var(--line);
}

.article__video figcaption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--ink-2);
}

.article__table {
    overflow-x: auto;
    margin-block: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.article__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.article__body > table {
    display: block;
    overflow-x: auto;
}

.article__body th,
.article__body td {
    min-width: 120px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.article__body th {
    background: var(--wash);
    color: var(--ink);
    font-weight: 600;
}

.article__body tr:last-child td {
    border-bottom: 0;
}

.article__more {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.article__more .card__more {
    margin-top: 0;
    text-decoration: none;
}

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

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

    .pager {
        grid-template-columns: 1fr 1fr;
    }

    .pager__at {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-self: center;
    }
}


/* Product tour --------------------------------------------------------------

   The app's own frame, a step at a time: the navy sidebar on the left, the page of the
   step beside it and, when it is open, the "Ask digna" panel on the right. Over it, what
   the step shows and the way on. The row or button that leads to the next step pulses. */

.tour-head {
    padding-block: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 32px);
}

.tour-head .page-head__title {
    max-width: 24ch;
    margin-bottom: 14px;
    font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem);
}

.tour-stage {
    padding-bottom: clamp(56px, 8vw, 104px);
}

.tour__guide {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 20px;
}

.tour__words {
    min-width: 0;
    max-width: 68ch;
}

.tour__marks {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.tour__mark {
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--wash-2);
    transition: background-color 0.15s ease;
}

.tour__mark:hover {
    background: var(--ink-3);
}

.tour__mark.is-done {
    background: var(--sky);
}

.tour__mark[aria-current="step"] {
    background: var(--navy);
}

.tour__count {
    margin: 0 0 6px;
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 500;
}

.tour__title {
    margin: 0 0 8px;
    font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.tour__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 1.0625rem;
    line-height: 1.5;
    text-wrap: pretty;
}

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

.tour__actions .button .icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.tour__note {
    margin: 14px 0 0;
    color: var(--ink-3);
    font-size: 0.8125rem;
    text-align: center;
}

.app {
    --side: 232px;
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #F4F6F9;
    box-shadow:
        0 1px 2px rgb(26 36 48 / 0.05),
        0 12px 24px -8px rgb(26 36 48 / 0.08),
        0 40px 80px -24px rgb(0 44 107 / 0.16);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.app--chat {
    grid-template-columns: var(--side) minmax(0, 1fr) minmax(280px, 340px);
}

.app__side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 16px 12px 12px;
    background: var(--navy);
    color: #FFFFFF;
}

.app__logo {
    display: block;
    width: auto;
    height: 28px;
    margin: 2px 6px 4px;
    align-self: flex-start;
}

.app__picker,
.app__filter {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 8px;
}

.app__picker {
    justify-content: space-between;
    font-weight: 600;
}

.app__picker .icon,
.app__filter .icon {
    flex: none;
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.app__filter {
    color: rgb(255 255 255 / 0.55);
}

.app__nav,
.app__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app__row,
.app__source {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.app__row .icon {
    flex: none;
    width: 16px;
    height: 16px;
}

.app__row--still,
.app__source--still {
    opacity: 0.6;
}

a.app__row:hover,
a.app__source:hover {
    background: rgb(255 255 255 / 0.08);
}

.app__row[aria-current="page"] {
    background: rgb(255 255 255 / 0.14);
    font-weight: 600;
}

.app__sources {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.app__caption {
    margin: 0;
    padding: 0 8px;
    color: rgb(255 255 255 / 0.6);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app__source {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
}

/* The app marks the data source in view with a white bar on its left edge. */
.app__source[aria-current="page"] {
    background: rgb(255 255 255 / 0.08);
    font-weight: 600;
}

.app__source[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    border-radius: 1px;
    background: #FFFFFF;
}

.app__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 4px 0;
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.app__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.16);
    font-size: 0.625rem;
    font-weight: 600;
}

.app__user {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app__ask {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: inherit;
}

.app__ask:hover,
.app__ask[aria-current="true"] {
    background: rgb(255 255 255 / 0.14);
}

.app__ask .icon {
    width: 16px;
    height: 16px;
}

/* The page of the step: a product view, without the window it is drawn in elsewhere, so
   its bar reads as the app's page header. */
.app__page {
    min-width: 0;
}

.app__page .view {
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.app__page .view__bar {
    min-height: 60px;
    padding: 0 20px;
    border-bottom: 0;
    background: transparent;
}

.app__page .view__dots {
    display: none;
}

.app__page .view__title {
    font-size: 1.125rem;
}

.app__page .view__date {
    height: 36px;
    background: var(--paper);
}

.app__page .view__body {
    padding: 4px 20px 20px;
}

/* A step arrives at once: the views' own entrance waits for them to scroll into sight,
   which a step swapped in under the reader's eyes never does. */
.app__page .view--enter .view__body > * {
    animation: settle 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-timeline: auto;
    animation-range: normal;
}

.app__chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
    animation: settle 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.app__thread {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 14px;
    padding: 16px;
}

.app__thread p {
    margin: 0;
}

.app__reject,
.app__approve,
.app__approved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.app__reject {
    border: 1px solid rgb(0 44 107 / 0.5);
    color: var(--navy);
}

.app__approve {
    position: relative;
    background: var(--navy);
    color: #FFFFFF;
    text-decoration: none;
}

.app__approve:hover {
    background: var(--navy-hover);
}

.app__approved {
    padding: 0;
    color: var(--green);
    font-weight: 600;
}

.app__approved .icon {
    width: 16px;
    height: 16px;
}

.app__confirmation {
    animation: settle 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.app__composer {
    margin: 0 16px 16px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--wash);
    color: var(--ink-3);
}

/* The way on: a small dot that breathes on the row or button to press. It is no frame
   and no fill, so it is never taken for the row the app has selected. */
.is-spot::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--sky);
    pointer-events: none;
    animation: spot 1.6s ease-out infinite;
}

.app__ask.is-spot::after,
.app__approve.is-spot::after {
    top: -3px;
    right: -3px;
    margin-top: 0;
}

@keyframes spot {
    0% {
        box-shadow: 0 0 0 0 rgb(143 182 240 / 0.7);
    }

    100% {
        box-shadow: 0 0 0 9px rgb(143 182 240 / 0);
    }
}

/* The form the tour starts with, over a frame that is shown but not yet in reach. */
.tour__stage {
    position: relative;
}

.app--locked {
    filter: blur(3px) saturate(0.8);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.tour__gate {
    position: absolute;
    top: 56px;
    left: 50%;
    z-index: 2;
    width: min(420px, calc(100% - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow:
        0 1px 2px rgb(26 36 48 / 0.05),
        0 12px 24px -8px rgb(26 36 48 / 0.12),
        0 40px 80px -24px rgb(0 44 107 / 0.22);
    transform: translateX(-50%);
}

.tour__gate .button {
    justify-self: stretch;
}

@media (prefers-reduced-motion: reduce) {
    .is-spot::after,
    .app__chat,
    .app__confirmation,
    .app__page .view--enter .view__body > * {
        animation: none;
    }
}

@media (max-width: 1080px) {
    .app {
        --side: 200px;
    }

    /* The panel takes the page's place rather than squeezing it. */
    .app--chat {
        grid-template-columns: var(--side) minmax(0, 1fr);
    }

    .app--chat .app__page {
        display: none;
    }

    .app__chat {
        border-left: 0;
    }
}

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

    .tour__actions {
        justify-content: flex-end;
    }

    /* The sidebar lies down across the top: its pages and the data sources in one row
       that scrolls sideways, so the way on stays in reach. */
    .app,
    .app--chat {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .app__side {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px;
        overflow-x: auto;
    }

    .app__logo,
    .app__picker,
    .app__caption,
    .app__filter,
    .app__avatar,
    .app__user,
    .app__row--still,
    .app__source--still {
        display: none;
    }

    .app__nav,
    .app__list {
        display: flex;
        gap: 4px;
    }

    .app__nav li:has(.app__row--still),
    .app__list li:has(.app__source--still) {
        display: none;
    }

    .app__sources {
        display: block;
        padding: 0 0 0 6px;
        border-top: 0;
        border-left: 1px solid rgb(255 255 255 / 0.12);
    }

    .app__row,
    .app__source {
        white-space: nowrap;
    }

    .app__foot {
        margin: 0 0 0 auto;
        padding: 0;
        border-top: 0;
    }

    .app__page .view__bar,
    .app__page .view__body {
        padding-inline: 12px;
    }
}


/* Careers ---------------------------------------------------------------------

   The open roles as rows to press, and an advert as one readable column. */

.roles {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 24px;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.role:hover {
    border-color: var(--ink-3);
}

.role__title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.role__place {
    grid-column: 1;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.role__more {
    display: inline-flex;
    grid-area: 1 / 2 / 3 / 3;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.role__more .icon,
.ticks .icon {
    width: 16px;
    height: 16px;
}

.ticks {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    font-weight: 500;
}

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

.ticks .icon {
    flex: none;
    color: var(--green);
}

.advert {
    display: grid;
    gap: 40px;
    max-width: 760px;
}

.advert__part {
    display: grid;
    gap: 12px;
}

.advert__label {
    margin: 0;
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 600;
}

.advert .section__title {
    margin: 0;
}

.advert__duties {
    display: grid;
    gap: 14px;
    margin: 0;
}

.advert__duties dt {
    font-weight: 600;
}

.advert__duties dd {
    margin: 2px 0 0;
    color: var(--ink-2);
}

@media (max-width: 600px) {
    .role {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .role__more {
        grid-area: auto;
        margin-top: 6px;
    }
}


/* The blog's search: beside the two lists, over every article's title and summary. */

.blog-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 32px;
}

.blog-bar .tabs {
    margin-bottom: 0;
}

.blog-search {
    display: flex;
    flex: 0 1 380px;
    gap: 8px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
}

.blog-search input:focus-visible {
    border-color: var(--navy);
    outline: 3px solid var(--navy-wash);
    outline-offset: 0;
}

.blog-search .button {
    cursor: pointer;
}

.blog-found {
    margin: -8px 0 28px;
    color: var(--ink-2);
}

.blog-found a {
    margin-left: 8px;
    color: var(--navy);
}

@media (max-width: 600px) {
    .blog-search {
        flex-basis: 100%;
    }
}


/* digna in 4 minutes: the card in the corner ---------------------------------- */

.vidcard {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    width: min(320px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgb(26 36 48 / 0.16);
    animation: vidcard-in 0.25s ease-out;
}

.vidcard[hidden] {
    display: none;
}

@keyframes vidcard-in {
    from { opacity: 0; transform: translateY(12px); }
}

.vidcard__screen {
    aspect-ratio: 16 / 9;
    background: #0D0D0D;
}

.vidcard__screen iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.vidcard__play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.vidcard__play img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vidcard__button {
    position: absolute;
    inset: 0;
    margin: auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.92);
    color: #0D0D0D;
}

.vidcard__button .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.vidcard__length {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgb(0 0 0 / 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.vidcard__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 0.65);
    color: #fff;
    cursor: pointer;
}

.vidcard__close .icon {
    width: 16px;
    height: 16px;
}

.vidcard__title {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

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