/* GreenOlive landing page: black and white, like the platform's light theme. */
:root {
    --bg: #ffffff;
    --bg-soft: #f6f6f5;
    --fg: #0b0b0b;
    --fg-muted: #565656;
    --fg-faint: #8b8b8b;
    --border: #e7e7e5;
    --border-strong: #cfcfcc;
    --ink: #0b0b0b;
    --ink-raised: #1d1d1d;
    --ink-fg: #ffffff;
    --ink-muted: #b8b8b8;
    --ring: #0b0b0b;
    --radius: 14px;
    --radius-small: 10px;
    --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 4px 16px rgb(0 0 0 / 4%);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
}

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

/* `hidden` always hides, also on elements this sheet gives a display. */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    interpolate-size: allow-keywords; /* lets the questions open smoothly */
}

/* Less motion when someone asks their system for it: everything simply appears. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

::selection {
    background: var(--ink);
    color: var(--ink-fg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 720;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.05rem;
    font-weight: 650;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
}

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

.container {
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
}

.container.narrow {
    width: min(760px, 100% - 32px);
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--ink-fg);
}

.skip:focus {
    top: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wordmark {
    display: block;
    height: 30px;
    width: auto;
    fill: currentColor;
}

.wordmark-small {
    height: 18px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 0 rgb(0 0 0 / 4%);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.button:hover {
    border-color: var(--fg);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgb(0 0 0 / 30%);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgb(0 0 0 / 4%);
}

.button .icon {
    width: 18px;
    height: 18px;
    transition: transform 200ms var(--ease-out);
}

.button:hover .nudge-right {
    transform: translateX(3px);
}

.button:hover .nudge-down {
    transform: translateY(2px);
}

.button-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--ink-fg);
}

.button-primary:hover {
    background: #2a2a2a;
    box-shadow: 0 10px 24px -10px rgb(0 0 0 / 55%);
}

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

.button-inverse:hover {
    border-color: #e9e9e9;
    background: #e9e9e9;
}

.button-large {
    min-height: 48px;
    padding: 0 22px;
    font-size: 1rem;
}

.link-button {
    padding: 2px 4px;
    border: 0;
    background: none;
    color: var(--fg-muted);
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-button:hover {
    color: var(--fg);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--fg-muted);
    cursor: pointer;
}

.icon-button:hover {
    background: var(--bg-soft);
    color: var(--fg);
}

/* Tiles: the platform's black app tiles. */
.tile {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--ink);
    color: var(--ink-fg);
    box-shadow: inset 0 -3px 0 rgb(255 255 255 / 12%), 0 1px 2px rgb(0 0 0 / 18%);
}

.tile .icon {
    width: 22px;
    height: 22px;
}

.tile-large {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.note {
    color: var(--fg-muted);
    font-size: 0.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgb(255 255 255 / 80%);
    backdrop-filter: saturate(140%) blur(12px);
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

/* Once the page scrolls, the bar gets its line and a soft shadow. */
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 24px -18px rgb(0 0 0 / 35%);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand {
    display: inline-flex;
    color: var(--fg);
}

.main-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--fg-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-current {
    background: var(--bg-soft);
    color: var(--fg);
}

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

    .header-row .button {
        margin-left: auto;
    }
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    padding: 80px 0 88px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(1200px 400px at 80% -10%, rgb(0 0 0 / 4%), transparent 60%),
        var(--bg);
}

/* A faint dot grid that fades out toward the edges. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgb(0 0 0 / 11%) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 20%, transparent 72%);
    pointer-events: none;
}

/* The headline comes in word by word, then a pen line underlines "own servers." */
.hero-title .word {
    display: inline-block;
    animation: word-in 800ms var(--ease-out) backwards;
    animation-delay: calc(80ms + var(--i, 0) * 60ms);
}

.underlined {
    position: relative;
    white-space: nowrap;
}

.underline {
    position: absolute;
    left: -1%;
    bottom: -0.14em;
    width: 102%;
    height: 0.3em;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-dasharray: 1 2; /* one dash as long as the line, and a longer gap, so no dot shows before it draws */
    stroke-dashoffset: 0;
    animation: draw 900ms cubic-bezier(0.6, 0, 0.2, 1) backwards 750ms;
}

.hero-copy > .lead,
.hero-copy > .actions,
.hero-copy > .hero-points {
    animation: rise 800ms var(--ease-out) backwards;
}

.hero-copy > .lead {
    animation-delay: 420ms;
}

.hero-copy > .actions {
    animation-delay: 520ms;
}

.hero-copy > .hero-points {
    animation-delay: 620ms;
}

/* The ticks draw themselves, one after another. */
.hero-points .icon {
    stroke-dasharray: 22 30;
    stroke-dashoffset: 0;
    animation: tick 500ms ease-out backwards;
}

.hero-points li:nth-child(1) .icon { animation-delay: 900ms; }
.hero-points li:nth-child(2) .icon { animation-delay: 1050ms; }
.hero-points li:nth-child(3) .icon { animation-delay: 1200ms; }

.hero-shot {
    animation: shot-in 1100ms var(--ease-out) backwards 250ms;
}

.hero-shot .window {
    animation: float 9s ease-in-out infinite 1.4s;
}

@keyframes word-in {
    from {
        opacity: 0;
        transform: translateY(0.35em);
        filter: blur(6px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

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

@keyframes tick {
    from {
        stroke-dashoffset: 22.5;
    }
}

@keyframes shot-in {
    from {
        opacity: 0;
        transform: perspective(1400px) rotateX(9deg) translateY(36px) scale(0.97);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.lead {
    max-width: 34rem;
    margin-top: 20px;
    color: var(--fg-muted);
    font-size: 1.15rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-points {
    display: grid;
    gap: 8px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-points .icon {
    width: 18px;
    height: 18px;
    color: var(--fg);
}

/* The product shot: the launcher, drawn in HTML. */
.window {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 18%), 0 2px 6px rgb(0 0 0 / 5%);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.window-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 10px;
    min-width: 172px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg-faint);
    font-size: 0.75rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

/* The search box types what people look for, and the app that has it lights up. */
.window-query {
    display: inline-flex;
    align-items: center;
    min-height: 1.2em;
    color: var(--fg);
    white-space: nowrap;
}

.window-query:empty::before {
    content: attr(data-placeholder);
    color: var(--fg-faint);
}

.window-search.is-typing {
    border-color: var(--fg);
    box-shadow: 0 0 0 3px rgb(0 0 0 / 6%);
}

.window-search.is-typing .window-query::after {
    content: "";
    width: 1px;
    height: 1.1em;
    margin-left: 1px;
    background: var(--fg);
    animation: blink 1s steps(2, jump-none) infinite;
}

.window-search.is-typing .window-query:empty::after {
    margin-left: 0;
}

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

.window-search .icon,
.window-bell {
    width: 14px;
    height: 14px;
}

.window-bell {
    color: var(--fg-muted);
}

.window-avatar {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-fg);
    font-size: 0.6rem;
    font-weight: 700;
}

.window-body {
    display: flex;
}

.window-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 52px;
    padding: 10px 0;
    border-right: 1px solid var(--border);
    background: #fbfbfa;
}

.rail-item {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--fg-muted);
}

.rail-item .icon {
    width: 17px;
    height: 17px;
}

.rail-item.is-current {
    background: #ececea;
    color: var(--fg);
}

.rail-line {
    width: 20px;
    height: 1px;
    margin: 2px 0;
    background: var(--border);
}

.window-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
}

.window-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.window-sub {
    margin-top: 2px;
    color: var(--fg-faint);
    font-size: 0.72rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: opacity 250ms ease, border-color 250ms ease, box-shadow 250ms ease, transform 250ms var(--ease-out);
    animation: rise 600ms var(--ease-out) backwards;
    animation-delay: calc(750ms + var(--i, 0) * 55ms);
}

.mini-grid.is-searching .mini-card {
    opacity: 0.38;
}

.mini-grid.is-searching .mini-card.is-match {
    opacity: 1;
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink), 0 8px 18px -10px rgb(0 0 0 / 35%);
    transform: translateY(-2px);
}

.mini-card .tile {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.mini-card .tile .icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero {
        padding-top: 48px;
    }
}

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

    .window-rail {
        display: none;
    }
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-soft {
    border-block: 1px solid var(--border);
    background: var(--bg-soft);
}

.section-lead {
    max-width: 40rem;
    margin-top: 14px;
    color: var(--fg-muted);
    font-size: 1.05rem;
}

/* The tools GreenOlive replaces, scrolling slowly. */
.replaces-band {
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.replaces-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.replaces-label {
    flex-shrink: 0;
    color: var(--fg-faint);
    font-size: 0.85rem;
    font-weight: 600;
}

.marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-copy {
    display: flex;
    flex-shrink: 0;
}

/* The logos, in grey; each turns black under the pointer. */
.logo-item {
    display: inline-flex;
    align-items: center;
    padding-right: 52px;
    color: var(--fg-faint);
    transition: color 200ms ease;
}

.logo-item:hover {
    color: var(--fg);
}

.logo {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

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

@media (max-width: 640px) {
    .replaces-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        width: auto;
    }

    .marquee-copy {
        flex-wrap: wrap;
        flex-shrink: 1;
        row-gap: 6px;
    }

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

/* Content rises into place as it scrolls into view (only when motion is on, see <head>). */
.motion .reveal {
    opacity: 0;
}

.motion .reveal.is-visible {
    animation: reveal 800ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(4px);
    }

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

@media print {
    .motion .reveal {
        opacity: 1;
    }
}

/* Cards: a soft light follows the pointer, and the edge darkens. */
.app-card,
.feature,
.step {
    position: relative;
    overflow: hidden;
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.app-card > *,
.feature > *,
.step > * {
    position: relative;
}

.app-card::before,
.feature::before,
.step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgb(0 0 0 / 5%), transparent 70%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

@media (hover: hover) {
    .app-card:hover,
    .feature:hover,
    .step:hover {
        border-color: var(--border-strong);
        box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 14px 34px -16px rgb(0 0 0 / 20%);
    }

    .app-card:hover::before,
    .feature:hover::before,
    .step:hover::before {
        opacity: 1;
    }
}

.app-card .tile {
    transition: transform 300ms var(--ease-out);
}

@media (hover: hover) {
    .app-card:hover .tile {
        transform: translateY(-2px) rotate(-4deg);
    }
}

/* Apps */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
}

.app-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.app-card h3 {
    font-size: 1rem;
}

.app-card p {
    margin-top: 4px;
    color: var(--fg-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.app-card .replaces {
    margin-top: 8px;
    color: var(--fg-faint);
    font-size: 0.8rem;
}

.app-grid + .note {
    margin-top: 20px;
}

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

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

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

/* Calculator */
.calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 40px;
}

.calc-controls {
    display: grid;
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 12px;
}

.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.label,
.field label,
.form-field label {
    font-size: 0.95rem;
    font-weight: 650;
}

.field-actions {
    display: flex;
    gap: 8px;
}

.number-input,
.money-input input,
.assumptions input,
.form-field input,
.form-field textarea {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 0.95rem;
}

.number-input {
    width: 120px;
    font-weight: 650;
    text-align: right;
}

/* The team-size slider: a thin grey track, filled in black up to a white handle. */
input[type="range"] {
    --fill: 0%;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    accent-color: var(--ink);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]:focus-visible {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill) 100% no-repeat, var(--border);
}

input[type="range"]::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--bg);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.08);
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.18);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgb(0 0 0 / 12%), 0 2px 8px rgb(0 0 0 / 18%);
}

input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--border);
}

input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--ink);
}

input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--bg);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 5px rgb(0 0 0 / 12%), 0 2px 8px rgb(0 0 0 / 18%);
}

.range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: -6px;
    color: var(--fg-faint);
    font-size: 0.78rem;
}

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

.app-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--fg-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.app-toggle:hover {
    border-color: var(--border-strong);
}

.app-toggle .tile {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--fg-muted);
    box-shadow: none;
}

.app-toggle .tile .icon {
    width: 17px;
    height: 17px;
}

.app-toggle-text {
    display: grid;
    min-width: 0;
}

.app-toggle-name {
    color: var(--fg);
    font-size: 0.92rem;
    font-weight: 650;
}

.app-toggle-replaces {
    overflow: hidden;
    color: var(--fg-faint);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-toggle[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--bg);
    box-shadow: 0 0 0 1px var(--ink);
}

.app-toggle .tile {
    transition: background-color 200ms ease, color 200ms ease;
}

.app-toggle[aria-pressed="true"] .tile {
    background: var(--ink);
    color: var(--ink-fg);
}

.app-toggle:active {
    transform: scale(0.98);
}

/* A short pop when an app is picked or dropped. */
.app-toggle.is-toggled .tile {
    animation: pop 340ms var(--ease-out);
}

@keyframes pop {
    40% {
        transform: scale(0.86);
    }

    75% {
        transform: scale(1.06);
    }
}

/* The currency dropdown, with a drawn chevron. */
.select-wrap {
    position: relative;
    display: inline-flex;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border: solid var(--fg);
    border-width: 0 1.75px 1.75px 0;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.select {
    min-width: 250px;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.select:hover {
    border-color: var(--fg);
}

.select:focus-visible {
    outline: none;
    border-color: var(--fg);
    box-shadow: 0 0 0 3px rgb(0 0 0 / 10%);
}

.rates-note {
    color: var(--fg-faint);
    font-size: 0.8rem;
}

@media (max-width: 520px) {
    .select-wrap,
    .select {
        width: 100%;
        min-width: 0;
    }
}

.assumptions {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.assumptions summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.assumptions summary::-webkit-details-marker {
    display: none;
}

.assumptions summary .icon {
    width: 18px;
    height: 18px;
    transition: transform 150ms ease;
    transform: rotate(-90deg);
}

.assumptions[open] summary .icon {
    transform: none;
}

.assumptions > .note {
    margin-top: 12px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--bg-soft);
    color: var(--fg-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td small {
    display: block;
    color: var(--fg-faint);
    font-size: 0.78rem;
}

tr.is-off td {
    color: var(--fg-faint);
}

.assumptions input {
    width: 92px;
    height: 34px;
    text-align: right;
}

.money-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.money-prefix {
    color: var(--fg-muted);
    font-size: 0.85rem;
}

.servers-field {
    margin-top: 16px;
}

.servers-field .money-input input {
    width: 110px;
    height: 36px;
    text-align: right;
}

.calc-result {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 14px;
    padding: 28px;
    border-radius: 18px;
    background: var(--ink);
    color: var(--ink-fg);
    box-shadow: 0 30px 60px -24px rgb(0 0 0 / 45%);
}

.result-label {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.result-amount {
    font-size: clamp(2.4rem, 5vw, 3.3rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.result-sub {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* The subscriptions as one bar: what the team keeps (white) and what the servers take (grey). */
.result-bar {
    display: flex;
    gap: 3px;
    height: 8px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
}

.result-bar span {
    width: 0;
    border-radius: 999px;
    transition: width 700ms var(--ease-out);
}

.bar-keep {
    background: var(--ink-fg);
}

.bar-servers {
    background: var(--ink-muted);
    opacity: 0.7;
}

.swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: 1px;
}

.swatch-keep {
    background: var(--ink-fg);
}

.swatch-servers {
    background: var(--ink-muted);
    opacity: 0.7;
}

.result-lines {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 16px 0;
    border-block: 1px solid rgb(255 255 255 / 14%);
}

.result-lines div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.result-lines dt {
    color: var(--ink-muted);
}

.result-lines dd {
    margin: 0;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.result-total dt,
.result-total dd {
    color: var(--ink-fg);
    font-weight: 750;
}

.result-multiple {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.result-note {
    color: #8f8f8f;
    font-size: 0.8rem;
}

.calc-result .button {
    width: 100%;
    margin-top: 4px;
    white-space: normal; /* never wider than the card */
    text-align: center;
}

@media (max-width: 420px) {
    .calc-result .button .icon {
        display: none;
    }
}

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

    .calc-result {
        position: static;
    }
}

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

    .calc-controls,
    .calc-result {
        padding: 22px;
    }
}

/* Why */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
}

.feature {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 12px 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.feature > h3,
.feature > p {
    padding-inline: 12px;
}

.feature > h3 {
    font-size: 1.12rem;
}

.feature > p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* Wide and narrow cards, in turn. */
.feature-wide {
    grid-column: span 2;
}

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

    .feature-wide {
        grid-column: auto;
    }
}

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

/* The drawing at the top of each card, on a dotted panel. */
.feature-visual {
    display: grid;
    place-items: center;
    height: 196px;
    margin-bottom: 14px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background:
        radial-gradient(rgb(0 0 0 / 8%) 1px, transparent 1.3px) 0 0 / 16px 16px,
        var(--bg-soft);
}

.rack-name,
.console-visual {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Your servers: a rack with its lights on, and the places it can stand. */
.servers-visual {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rack {
    display: grid;
    gap: 6px;
    width: 172px;
    padding: 9px;
    border-radius: 12px;
    background: var(--ink);
    box-shadow: 0 16px 30px -14px rgb(0 0 0 / 55%);
}

.rack-unit {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: var(--ink-raised);
}

.rack-vents {
    width: 22px;
    height: 12px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgb(255 255 255 / 22%) 0 2px, transparent 2px 5px);
}

.rack-name {
    flex: 1;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.rack-led {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ink-fg);
    box-shadow: 0 0 6px rgb(255 255 255 / 70%);
    animation: led 2.6s ease-in-out infinite;
}

.rack-unit:nth-child(2) .rack-led { animation-delay: 0.7s; }
.rack-unit:nth-child(3) .rack-led { animation-delay: 1.4s; }

@keyframes led {
    50% {
        opacity: 0.25;
    }
}

.servers-link {
    width: 36px;
    border-top: 1.5px dashed var(--border-strong);
}

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

.places li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    animation: place 7.5s ease-in-out infinite;
}

.places li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--ink);
}

.places li:nth-child(2) { animation-delay: 2.5s; }
.places li:nth-child(3) { animation-delay: 5s; }

@keyframes place {
    0%,
    28% {
        border-color: var(--ink);
        box-shadow: 0 0 0 1px var(--ink), 0 6px 14px -8px rgb(0 0 0 / 35%);
    }

    36%,
    100% {
        border-color: var(--border);
        box-shadow: none;
    }
}

@media (max-width: 1080px) {
    .servers-link {
        display: none;
    }
}

@media (max-width: 420px) {
    .servers-visual {
        gap: 12px;
    }

    .rack {
        width: 136px;
    }

    .places li {
        padding: 6px 10px;
        font-size: 0.74rem;
    }
}

/* One account: a person, and the apps they use; two switch on and off. */
.account-visual {
    width: min(100%, 270px);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 12px 28px -16px rgb(0 0 0 / 30%);
}

.account-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-avatar,
.log-who,
.doc-people span {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-fg);
    font-weight: 700;
}

.account-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
}

.account-head b {
    display: block;
    font-size: 0.86rem;
}

.account-head small {
    display: block;
    color: var(--fg-faint);
    font-size: 0.74rem;
}

.account-apps {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.account-apps .tile {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.account-apps .tile .icon {
    width: 15px;
    height: 15px;
}

.account-apps .tile.is-off {
    background: var(--bg-soft);
    color: var(--fg-faint);
    box-shadow: inset 0 0 0 1px var(--border);
}

.account-apps .tile.is-switching {
    animation: switch-app 5s ease-in-out infinite;
}

.account-apps .tile.is-switching:last-child {
    animation-delay: 1.2s;
}

@keyframes switch-app {
    0%,
    40%,
    100% {
        background: var(--bg-soft);
        color: var(--fg-faint);
        box-shadow: inset 0 0 0 1px var(--border);
    }

    50%,
    90% {
        background: var(--ink);
        color: var(--ink-fg);
        box-shadow: inset 0 -3px 0 rgb(255 255 255 / 12%), 0 1px 2px rgb(0 0 0 / 18%);
    }
}

/* Permissions: an audit log, a line at a time. */
.log-visual {
    display: grid;
    gap: 8px;
    width: min(100%, 300px);
}

.log-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-size: 0.76rem;
    animation: log-in 9s ease infinite backwards;
}

.log-row:nth-child(2) { animation-delay: 0.9s; }
.log-row:nth-child(3) { animation-delay: 1.8s; }

@keyframes log-in {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

    6%,
    88% {
        opacity: 1;
        transform: none;
    }

    95%,
    100% {
        opacity: 0;
    }
}

.log-who {
    width: 22px;
    height: 22px;
    font-size: 0.56rem;
}

.log-what {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--fg-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-what b {
    color: var(--fg);
}

.log-verdict {
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid var(--fg);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
}

.log-verdict.is-denied {
    background: var(--ink);
    color: var(--ink-fg);
}

/* Working together: a document with two people's cursors, one typing and one selecting. */
.doc-visual {
    width: min(100%, 440px);
    padding: 12px 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 0 12px 28px -16px rgb(0 0 0 / 30%);
}

.doc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.doc-people {
    display: flex;
}

.doc-people span {
    width: 24px;
    height: 24px;
    margin-left: -3px;
    border: 2px solid var(--bg);
    font-size: 0.56rem;
}

.doc-people span + span {
    background: var(--bg-soft);
    color: var(--fg);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.doc-line {
    position: relative;
    display: block;
    width: var(--w);
    height: 7px;
    margin-top: 12px;
    border-radius: 4px;
    background: var(--border);
}

.doc-typing {
    animation: typing 6s infinite;
    animation-timing-function: steps(9, end);
}

@keyframes typing {
    0% {
        width: 18%;
    }

    65%,
    92% {
        width: var(--w);
    }

    100% {
        width: 18%;
    }
}

.doc-select {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 28%;
    width: 46%;
    border-radius: 3px;
    background: rgb(0 0 0 / 9%);
    animation: select 6s ease-in-out 1s infinite backwards;
}

@keyframes select {
    0%,
    15% {
        width: 0;
    }

    40%,
    80% {
        width: 46%;
    }

    95%,
    100% {
        width: 0;
    }
}

.cursor {
    position: absolute;
    top: -6px;
    right: -2px;
    width: 2px;
    height: 19px;
    background: var(--ink);
}

.cursor > span {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding: 1px 6px;
    border-radius: 4px 4px 4px 0;
    background: var(--ink);
    color: var(--ink-fg);
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
}

.cursor-selecting {
    top: -2px;
    background: var(--fg-muted);
}

.cursor-selecting > span {
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
}

/* Updates: installed, a check fails, and it goes back on its own. */
.update-visual {
    width: min(100%, 520px);
}

.update-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.update-track::before,
.update-track::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: var(--border-strong);
}

.update-track::after {
    background: var(--ink);
    transform-origin: left;
    animation: track 7s ease-in-out infinite;
}

@keyframes track {
    0% {
        opacity: 1;
        transform: scaleX(0);
    }

    45%,
    88% {
        opacity: 1;
        transform: scaleX(1);
    }

    96%,
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

.update-step {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 2px;
    padding: 0 6px;
}

.update-step b {
    margin-top: 10px;
    font-size: 0.8rem;
}

.update-step small {
    color: var(--fg-faint);
    font-size: 0.72rem;
}

.update-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 0 0 5px var(--bg-soft);
    animation: dot-in 7s var(--ease-out) infinite backwards;
}

/* A tick on the good steps, a cross on the failed one. */
.update-dot::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid var(--ink-fg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.update-step:nth-child(2) .update-dot { animation-delay: 1.4s; }
.update-step:nth-child(3) .update-dot { animation-delay: 2.8s; }

.is-failed .update-dot {
    background: var(--bg);
    box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--bg-soft);
}

.is-failed .update-dot::after {
    width: 10px;
    height: 10px;
    margin: 0;
    border: 0;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
}

@keyframes dot-in {
    0% {
        opacity: 0.3;
        transform: scale(0.5);
    }

    8%,
    90% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0.3;
        transform: scale(0.5);
    }
}

/* A way in: the Recovery Console, up while the platform is down. */
.console-visual {
    width: min(100%, 280px);
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--ink-fg);
    font-size: 0.76rem;
    line-height: 1.5;
    box-shadow: 0 16px 32px -16px rgb(0 0 0 / 55%);
}

.console-title {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: var(--ink-muted);
}

.console-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-status span:last-child {
    margin-left: auto;
    color: var(--ink-muted);
}

.console-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--ink-fg);
    box-shadow: 0 0 6px rgb(255 255 255 / 60%);
    animation: led 2s ease-in-out infinite;
}

.console-dot.is-down {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--ink-muted);
    animation: none;
}

.console-action {
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--ink-muted);
    animation: console-pick 6s ease-in-out infinite;
}

.console-status + .console-action {
    margin-top: 10px;
}

.console-action.is-current {
    background: rgb(255 255 255 / 12%);
    color: var(--ink-fg);
}

.console-action + .console-action {
    animation-delay: -3s;
}

@keyframes console-pick {
    0%,
    45% {
        background: rgb(255 255 255 / 12%);
        color: var(--ink-fg);
    }

    50%,
    100% {
        background: transparent;
        color: var(--ink-muted);
    }
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.step {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.step p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ink-fg);
    font-size: 0.9rem;
    font-weight: 700;
}

/* As the steps come in, their numbers fill in one after another. */
.motion .step.is-visible .step-number {
    animation: fill-in 600ms ease backwards;
    animation-delay: calc(var(--i, 0) * 80ms + 450ms);
}

@keyframes fill-in {
    from {
        background: var(--bg);
        color: var(--ink);
        box-shadow: inset 0 0 0 1.5px var(--ink);
    }
}

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

/* FAQ */
.faq {
    display: grid;
    gap: 10px;
    margin-top: 32px;
}

.faq details {
    padding: 4px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 200ms ease, box-shadow 250ms ease;
}

.faq details:hover,
.faq details[open] {
    border-color: var(--border-strong);
}

.faq details[open] {
    box-shadow: var(--shadow);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* A plus that turns into a cross when the answer opens. */
.faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.75px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.75px 100% no-repeat;
    transition: transform 300ms var(--ease-out);
}

.faq details[open] summary::after {
    transform: rotate(135deg);
}

/* The answer slides open where the browser supports it. */
.faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
}

.faq details[open]::details-content {
    block-size: auto;
}

.faq details p {
    padding-bottom: 16px;
    color: var(--fg-muted);
}

/* Closing band */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 80px 0;
    background: var(--ink);
    color: var(--ink-fg);
}

/* The olive, large and faint, swaying slowly behind the band. */
.cta-mark {
    position: absolute;
    top: 50%;
    right: max(-60px, calc(50% - 720px));
    z-index: -1;
    height: 340px;
    width: auto;
    fill: rgb(255 255 255 / 5%);
    transform: translateY(-50%) rotate(-10deg);
    transform-origin: 50% 100%;
    animation: sway 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sway {
    0%,
    100% {
        transform: translateY(-50%) rotate(-10deg);
    }

    50% {
        transform: translateY(-53%) rotate(-4deg);
    }
}

.cta .button-inverse:hover {
    box-shadow: 0 10px 30px -10px rgb(255 255 255 / 35%);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta p {
    margin-top: 10px;
    color: var(--ink-muted);
    font-size: 1.05rem;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-row .wordmark {
    height: 26px;
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.footer-nav a {
    color: var(--fg-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--fg);
}

.footer-legal {
    width: 100%;
}

/* Demo dialog */
.dialog {
    width: min(560px, 100% - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
    color: var(--fg);
    box-shadow: 0 40px 80px -20px rgb(0 0 0 / 35%);
}

.dialog::backdrop {
    background: rgb(0 0 0 / 45%);
    backdrop-filter: blur(3px);
}

.dialog[open] {
    animation: dialog-in 280ms var(--ease-out);
}

.dialog[open]::backdrop {
    animation: fade-in 280ms ease;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

.demo-form {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dialog-head h2 {
    font-size: 1.4rem;
}

.dialog-head .note {
    margin-top: 6px;
}

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

.form-field {
    display: grid;
    gap: 6px;
    align-content: start; /* inputs line up when an error shows next to them */
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
    width: 100%;
}

.form-field textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.form-field [aria-invalid="true"] {
    border-color: #b42318;
}

.field-error {
    color: #b42318;
    font-size: 0.82rem;
}

/* When a request could not be sent; what was written stays in the form. */
.form-error {
    color: #b42318;
    font-size: 0.88rem;
    font-weight: 600;
}

/* The spam trap: no person sees it. */
.trap {
    display: none;
}

.button[aria-busy="true"] {
    cursor: progress;
    opacity: 0.75;
}

.optional {
    color: var(--fg-faint);
    font-weight: 400;
}

.demo-summary {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--fg-muted);
    font-size: 0.88rem;
}

.demo-summary:empty {
    display: none;
}

.dialog-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dialog-foot .button {
    margin-left: auto;
}

.demo-done {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
}

.demo-done p {
    max-width: 26rem;
    color: var(--fg-muted);
}

/* The thank-you: the tile pops in and the tick draws itself. */
.demo-done:not([hidden]) .done-tile {
    animation: pop-in 500ms var(--ease-out) backwards;
}

.demo-done:not([hidden]) .done-tile .icon {
    stroke-dasharray: 22 30;
    stroke-dashoffset: 0;
    animation: tick 450ms ease-out backwards 260ms;
}

.demo-done:not([hidden]) > :not(.done-tile) {
    animation: rise 500ms var(--ease-out) backwards 120ms;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
}

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