
@font-face {
    font-family: 'Inter';
    src: url('/pens/fonts/InterVariableLatin.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #000;
    --card-2: #141414;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);
    --ink: #f5f5f5;
    --ink-2: #a3a3a3;
    --ink-3: #6b6b6b;
    --blue-2: #4d9aff;
    --green: #4dff88;
    --rainbow: linear-gradient(
        90deg,
        #ff5c8a,
        #ffb347,
        #ffe14d,
        #4dff88,
        #4d9aff,
        #a66bff
    );
    --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
    --out: cubic-bezier(0.23, 1, 0.32, 1);
    --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
    --gutter: clamp(16px, 5vw, 80px);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}
html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
/* Every control in Inter too, never the browser's own font */
input,
textarea,
select {
    font-family: inherit;
}
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
:focus-visible {
    outline: 2px solid var(--blue-2);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Coming in: hidden until the sweep starts, but never for good if the script fails */
.sweep .page {
    opacity: 0;
    animation: failsafe 0s 3s forwards;
}
@keyframes failsafe {
    to {
        opacity: 1;
    }
}
.reveal [data-reveal]:not(.in) {
    opacity: 0;
    translate: 0 14px;
    filter: blur(6px);
    /* Never hidden for good: if the script stalls, show it anyway */
    animation: failsafe-in 0.4s ease 3s forwards;
}
@keyframes failsafe-in {
    to {
        opacity: 1;
        translate: 0 0;
        filter: none;
    }
}
[data-reveal] {
    transition:
        opacity 0.7s var(--out),
        translate 0.8s var(--out),
        filter 0.7s var(--out);
}
.sweepfx {
    position: fixed;
    top: 0;
    z-index: 50;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    will-change: transform, opacity;
}

.page {
    position: relative;
    min-height: 100vh;
}
.wrap {
    max-width: 680px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px;
}
.logo {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -7px;
    border-radius: 8px;
    color: #fff;
    transition: background 0.2s;
}
.logo:hover {
    background: var(--card-2);
}
/* Wiki's logo: the pink symbol, and the word in white beside it in the
   bar. Flat colours, as the logo files have them */
.logo .mark,
.tile .mark {
    width: 24px;
    height: 16px;
    fill: #ff5c8a;
    fill-opacity: 0.95;
    transition: scale 0.3s var(--spring);
}
.logo.full {
    width: auto;
    padding: 0 7px;
}
.mark-full {
    width: 71px;
    height: 16px;
    transition: scale 0.3s var(--spring);
}
.mark-full .symbol {
    fill: #ff5c8a;
    fill-opacity: 0.95;
}
.mark-full .word {
    fill: #fff;
}
.logo:active .mark,
.logo:active .mark-full {
    scale: 0.96;
}
.nav nav {
    display: flex;
    gap: 2px;
}
.nav nav a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    transition:
        color 0.2s,
        background 0.2s;
}
.nav nav a:hover {
    color: var(--ink);
    background: var(--card-2);
}
/* The way to start: filled, so it is the one the eye lands on */
.nav nav a.cta {
    margin-left: 4px;
    background: #1f1f1f;
    color: var(--ink);
}
.nav nav a.cta:hover {
    background: #2a2a2a;
}

/* One narrow column: the statement, then the way in under it */
.hero.wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-block: clamp(80px, 14vh, 140px) clamp(40px, 6vh, 56px);
}
.hero-text {
    min-width: 0;
}
.statement {
    margin: 0;
    max-width: 34em;
    color: #fff;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    letter-spacing: -0.01em;
    font-weight: 400;
    text-wrap: pretty;
}
/*
 * The statement comes in a word at a time: each one rises out of a blur in
 * a dark grey, then warms to white just behind the next. The script wraps
 * the words and gives each its place (--d); without it the text just shows.
 */
.js .statement:not(.words) .w {
    animation: failsafe-in 0.4s ease 3s forwards;
}
.js .statement .w {
    opacity: 0;
    filter: blur(10px);
    translate: 0 0.4em;
    color: #333;
    transition:
        opacity 0.5s var(--out) var(--d),
        filter 0.7s var(--out) var(--d),
        translate 0.8s var(--spring) var(--d),
        color 1.1s ease calc(var(--d) + 260ms);
    will-change: opacity, filter, translate;
}
.js .statement .w:not(.logo-chip) {
    display: inline-block;
}
.js .statement.words .w {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
    color: #fff;
}

/* A small gap between the statement's paragraphs */
.statement + .statement {
    margin-top: 0.75em;
}
/* The agents' names read as part of the sentence, commas and all */
.statement .logo-chip,
.statement .logo-then {
    color: inherit;
}
.logo-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    color: #e8e8e8;
    white-space: nowrap;
}
.logo-then {
    margin-left: -0.3em;
    color: #8a8a8a;
}
.logo-tile {
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 0.92em;
    height: 0.92em;
    border-radius: 0.24em;
    background: #1c1c1f;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    translate: 0 -0.04em;
    transition: scale 0.4s var(--spring);
}
.logo-chip:hover .logo-tile {
    scale: 1.12;
}
.logo-tile svg {
    width: 62%;
    height: 62%;
}
.logo-tile .claude {
    fill: #d97757;
}
.logo-tile .cursor,
.logo-tile .openai {
    fill: #fff;
}
/* The icons open into the sentence once it is drawn, one after another */
.i1 {
    --i: 1;
}
.i2 {
    --i: 2;
}
.js .statement .logo-tile {
    --at: calc(var(--i, 0) * 120ms);
    overflow: hidden;
    width: 0;
    margin-right: -0.3em;
    opacity: 0;
    filter: blur(6px);
    scale: 0.4;
    transition:
        width 0.55s var(--out) var(--at),
        margin-right 0.55s var(--out) var(--at),
        opacity 0.4s ease calc(var(--at) + 140ms),
        filter 0.5s var(--out) calc(var(--at) + 140ms),
        scale 0.6s var(--spring) calc(var(--at) + 140ms);
}
.js .statement.icons .logo-tile {
    width: 0.92em;
    margin-right: 0;
    opacity: 1;
    filter: none;
    scale: 1;
}
.js .statement.settled .logo-tile {
    transition: scale 0.4s var(--spring);
}
.js .statement.settled .logo-chip:hover .logo-tile {
    scale: 1.12;
}

.hero-install {
    min-width: 0;
    width: 100%;
}
.term {
    position: relative;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: 12.5px;
    overflow: hidden;
}
.term::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--rainbow);
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 25%,
        #000 75%,
        transparent
    );
}
/* The rainbow is for marketing pages only: on the account and flows
   pages the box keeps a plain edge */
html:not([data-marketing]) .term::before {
    display: none;
}
/* The choice of agent is four radio buttons, so it works without the script */
.pick {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.term-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 40px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
    font-family: Inter, system-ui, sans-serif;
}
.pm {
    position: relative;
    display: flex;
    gap: 2px;
    min-width: 0;
}
.pm label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}
.pm label:hover {
    color: var(--ink-2);
}
#agent-claude-code:checked ~ .term-head [for='agent-claude-code'],
#agent-cursor:checked ~ .term-head [for='agent-cursor'],
#agent-codex:checked ~ .term-head [for='agent-codex'],
#agent-other:checked ~ .term-head [for='agent-other'] {
    color: var(--ink);
}
#agent-claude-code:focus-visible ~ .term-head [for='agent-claude-code'],
#agent-cursor:focus-visible ~ .term-head [for='agent-cursor'],
#agent-codex:focus-visible ~ .term-head [for='agent-codex'],
#agent-other:focus-visible ~ .term-head [for='agent-other'] {
    outline: 2px solid var(--blue-2);
    outline-offset: 2px;
}
/* Without the script there is no sliding pill: the chosen one is filled in place */
html:not(.js) #agent-claude-code:checked ~ .term-head [for='agent-claude-code'],
html:not(.js) #agent-cursor:checked ~ .term-head [for='agent-cursor'],
html:not(.js) #agent-codex:checked ~ .term-head [for='agent-codex'],
html:not(.js) #agent-other:checked ~ .term-head [for='agent-other'] {
    background: rgba(255, 255, 255, 0.08);
}
.pm-pill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 26px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        translate 0.35s var(--out),
        width 0.35s var(--out);
}

/* Shown by the script: without it the button would do nothing */
.copy {
    display: none;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 9px 0 8px;
    border-radius: 7px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
    transition:
        background 0.15s,
        color 0.15s,
        scale 0.15s;
}
.can-copy .copy {
    display: inline-flex;
}
.copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
}
.copy:active {
    scale: 0.96;
}
.copy[data-copied='true'] {
    color: var(--green);
}
.copy-icons {
    position: relative;
    width: 14px;
    height: 14px;
}
.copy-icons svg {
    position: absolute;
    inset: 0;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        opacity 0.2s,
        scale 0.3s var(--spring),
        filter 0.2s;
}
.copy-icons .i-check {
    opacity: 0;
    scale: 0.5;
    filter: blur(2px);
    stroke-width: 1.8;
}
.copy[data-copied='true'] .i-copy {
    opacity: 0;
    scale: 0.5;
    filter: blur(2px);
}
.copy[data-copied='true'] .i-check {
    opacity: 1;
    scale: 1;
    filter: none;
}

.term-body {
    padding: 12px 16px 13px;
    text-align: left;
    font-size: 13px;
    line-height: 1.75;
}
.panel {
    display: none;
}
#agent-claude-code:checked ~ .term-body .claude-code,
#agent-cursor:checked ~ .term-body .cursor,
#agent-codex:checked ~ .term-body .codex,
#agent-other:checked ~ .term-body .other {
    display: block;
}
.t-cmd {
    margin: 0;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}
.t-prompt {
    margin-right: 10px;
    color: var(--ink-3);
    user-select: none;
}
.t-note {
    margin: 0;
    color: var(--ink-3);
}
.t-note a {
    color: var(--ink-2);
    transition: color 0.2s;
}
.t-note a:hover {
    color: var(--ink);
}

/* What to say once it is connected */
.next {
    margin: 14px 2px 0;
}
.next {
    color: var(--ink-3);
    font-size: 13px;
    text-wrap: pretty;
}
.next q {
    color: var(--ink-2);
    quotes: '“' '”';
}

/* ——— Logging in and making an account ——— */

.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 360px;
}
.auth form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
/* A way in: quiet, a hairline round it, its mark beside the words */
.way {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition:
        background 0.2s,
        border-color 0.2s,
        scale 0.15s;
}
.way:hover {
    background: var(--card-2);
    border-color: rgba(255, 255, 255, 0.18);
}
.way:active {
    scale: 0.98;
}
.way svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: rotate 0.5s var(--spring);
}
.way:hover svg {
    rotate: -8deg;
}
.or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--ink-3);
    font-size: 12px;
}
.or::before,
.or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.auth input[type='email'],
.auth input.code {
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.auth input::placeholder {
    color: #4a4a4a;
}
.auth input:focus {
    border-color: rgba(77, 154, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(77, 154, 255, 0.15);
}
/* The code without the script: one box, the digits spaced out a little */
.auth input.code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3em;
    text-align: center;
}
/*
 * The one thing to press: filled like Create account in the nav, but lit
 * from above, with the install box's line of colour along its top edge
 */
.go {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 14px;
    /* Solid, never a gradient: buttons are one flat dark colour */
    background: #0b0b0b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    transition:
        filter 0.2s,
        scale 0.15s var(--spring);
}
.go::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: var(--rainbow);
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 25%,
        #000 75%,
        transparent
    );
    opacity: 0.8;
    transition:
        left 0.4s var(--out),
        right 0.4s var(--out),
        opacity 0.3s;
}
/* The rainbow is for marketing pages only: elsewhere a button is plain */
html:not([data-marketing]) .go::before {
    display: none;
}
.go:hover {
    filter: brightness(1.2);
}
.go:hover::before {
    left: 4%;
    right: 4%;
    opacity: 1;
}
.go:active {
    scale: 0.98;
}
.cf-turnstile:empty {
    display: none;
}
.problem {
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 92, 138, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 92, 138, 0.2);
    color: #ff8fab;
    font-size: 13px;
    max-width: 360px;
}
/* ——— The code: two sets of three, like the other inputs ——— */

.otp {
    position: relative;
}
.otp-boxes {
    display: none;
}
/* With the script: the real input lies invisible over the boxes, so a tap
   anywhere on them focuses it, and pasting and autofill still land in it */
.otp.live input.code {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 16px;
    cursor: text;
}
.otp.live .otp-boxes {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
/* Each set is one field split in three, the same height and edge as the
   email box */
.otp-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    overflow: hidden;
    transition:
        border-color 0.25s,
        box-shadow 0.25s;
}
.otp-group:has(.here) {
    border-color: rgba(77, 154, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(77, 154, 255, 0.15);
}
.otp-dash {
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--ink-3);
}
.otp-box {
    --i: 0;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--ink);
    /* The same type as the email box: Inter, 14px, even-width digits */
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    transition: background 0.25s;
}
.otp-box + .otp-box {
    border-left: 1px solid var(--line);
}
.b1 { --i: 1; }
.b2 { --i: 2; }
.b3 { --i: 3; }
.b4 { --i: 4; }
.b5 { --i: 5; }
/* An empty place: a faint dot, as a placeholder */
.otp-box:not(.on):not(.here)::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3a3a3a;
}
/* The next place to fill: a caret blinking in it */
.otp-box.here {
    background: rgba(255, 255, 255, 0.03);
}
.otp-box.here::after {
    content: '';
    width: 1.5px;
    height: 16px;
    border-radius: 1px;
    background: var(--ink);
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
    50% {
        opacity: 0;
    }
}
/* A digit landing: up out of a blur, with a little overshoot */
.otp-box.pop {
    animation: digit-in 0.42s var(--spring);
}
@keyframes digit-in {
    from {
        color: transparent;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        transform: translateY(5px) scale(0.86);
    }
}
/* All six in: the places light up from left to right before it is sent */
.otp.done .otp-box {
    animation: lit 0.6s var(--out) calc(var(--i) * 45ms) both;
}
@keyframes lit {
    40% {
        background: rgba(255, 255, 255, 0.1);
    }
}
.otp.done .otp-group {
    border-color: rgba(255, 255, 255, 0.3);
}
/* A wrong code: the sets shake once and stay red until typing again */
.otp.wrong .otp-group {
    border-color: rgba(255, 92, 138, 0.45);
    box-shadow: none;
}
.otp.wrong.live .otp-boxes {
    animation: shake 0.45s var(--out);
}
@keyframes shake {
    15%,
    55% {
        translate: -6px 0;
    }
    35%,
    75% {
        translate: 5px 0;
    }
}

/* Links that are buttons, and forms that sit in a line of text */
.next form.inline {
    display: inline;
}
/* Looks and sits exactly like a link in the line */
button.link {
    position: relative;
    padding: 0;
    color: var(--ink);
    font: inherit;
    line-height: inherit;
    vertical-align: baseline;
}
button.link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
    transition:
        opacity 0.3s var(--out),
        translate 0.35s var(--out);
}
button.link:hover::after,
button.link:focus-visible::after {
    opacity: 0;
    translate: 0 4px;
}

/* ——— Connecting an agent ——— */

/* The Wiki tile stands in for the logo over the heading */
.mark-top:has(+ .joining) {
    display: none;
}
/*
 * Wiki and the agent, joined by a line. A spark leaves the agent, runs
 * along the line and lands in Wiki, which answers with a ring of light;
 * then it goes again. One 2.8s loop drives all three, so they stay in time.
 */
.joining {
    --loop: 2.8s;
    display: flex;
    align-items: center;
    margin-bottom: -4px;
}
.tile {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #141414;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 24px -10px rgba(0, 0, 0, 0.9);
    color: var(--ink);
}
/* The ring each tile gives off: the agent as the spark leaves, Wiki as
   it lands */
.tile::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45),
        0 0 12px rgba(255, 255, 255, 0.08);
    opacity: 0;
    animation: ring-out var(--loop) cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}
.tile.agent::after {
    animation-name: ring-send;
}
@keyframes ring-send {
    0% {
        opacity: 0;
        scale: 1;
    }
    6% {
        opacity: 0.45;
    }
    34%,
    100% {
        opacity: 0;
        scale: 1.18;
    }
}
@keyframes ring-out {
    0%,
    52% {
        opacity: 0;
        scale: 1;
    }
    60% {
        opacity: 0.5;
        scale: 1.02;
    }
    92%,
    100% {
        opacity: 0;
        scale: 1.22;
    }
}

.tile.agent {
    font-size: 17px;
    font-weight: 600;
}
/* The line: a hairline that is brighter in the middle, and the spark */
.wire {
    position: relative;
    width: 72px;
    height: 1px;
    margin: 0 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.06)
    );
}
.wire .orb {
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 10px 1px rgba(77, 154, 255, 0.28),
        0 0 16px 3px rgba(166, 107, 255, 0.14);
    animation: orb-run var(--loop) cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
/* A short tail of colour behind it */
.wire .orb::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, rgba(166, 107, 255, 0.8), transparent);
}
@keyframes orb-run {
    0% {
        translate: 70px 0;
        opacity: 0;
        scale: 0.6;
    }
    14% {
        opacity: 1;
        scale: 1;
    }
    44% {
        opacity: 1;
        scale: 1;
    }
    60%,
    100% {
        translate: -2px 0;
        opacity: 0;
        scale: 0.6;
    }
}

/* What is being agreed to: a few quiet rows in one bordered card */
.facts-card {
    width: 100%;
    max-width: 360px;
    margin: 0;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    text-align: left;
    font-size: 13px;
}
.facts-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
}
.facts-card div + div {
    border-top: 1px solid var(--line);
}
.facts-card dt {
    color: var(--ink-3);
    white-space: nowrap;
}
.facts-card dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--ink);
}
.facts-card .host {
    font-family: var(--mono);
    font-size: 12px;
}
.facts-card .unverified {
    color: #f5c46b;
}
.caution {
    max-width: 360px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 179, 71, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.2);
    color: #f5c46b;
    font-size: 13px;
}
/* Saying no: a dark red, quieter than Connect but plainly the other way */
.way.deny {
    border-color: rgba(255, 90, 90, 0.16);
    background: #120607;
    color: #ffb4b4;
}
.way.deny:hover {
    border-color: rgba(255, 90, 90, 0.3);
    background: #1a080a;
}
/* The reason as the system gave it: small, quiet, for reporting */
.detail {
    max-width: 34em;
    margin: 10px auto 0;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 12px;
    overflow-wrap: anywhere;
}
/* Cancel and Connect, side by side */
.auth.choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.auth.choice button {
    width: 100%;
}

/* A page that runs no script still comes in: each part rises out of a
   blur, one after another, with CSS alone */
[data-static] .hero.wrap > * {
    animation: rise-in 0.7s var(--out) both;
}
[data-static] .hero.wrap > :nth-child(2) {
    animation-delay: 0.08s;
}
[data-static] .hero.wrap > :nth-child(3) {
    animation-delay: 0.16s;
}
[data-static] .hero.wrap > :nth-child(4) {
    animation-delay: 0.24s;
}
[data-static] .hero.wrap > :nth-child(5) {
    animation-delay: 0.32s;
}
[data-static] .hero.wrap > :nth-child(n + 6) {
    animation-delay: 0.4s;
}
@keyframes rise-in {
    from {
        opacity: 0;
        translate: 0 12px;
        filter: blur(6px);
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-static] .hero.wrap > *,
    .tile::after,
    .dot-live,
    .wire .orb {
        animation: none;
    }
    .wire .orb {
        display: none;
    }
}

/* ——— The account page ——— */

.acct {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
}
.statement.quiet-line {
    margin-top: 0.3em;
    color: var(--ink-2);
}
/* The owner's own pages are tools, not a pitch: a plain heading and a
   small grey line, not the front page's large statement */
.acct .statement {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.acct .statement.quiet-line {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}
.js .statement.quiet-line.words .w {
    color: var(--ink-2);
}
.acct-section h2 {
    margin: 0 0 10px 2px;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 500;
}
/* Rebase UI's card: the dark surface with a hairline, like the flow cards */
.card {
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    overflow: hidden;
}
.card.danger {
    box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.16);
}
.card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.card-row + .card-row {
    border-top: 1px solid var(--border);
}
.card-row .grow {
    flex: 1;
    min-width: 0;
}
.row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.row-title a {
    color: inherit;
    transition: color 0.2s;
}
.row-title a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}
.row-sub {
    margin: 3px 0 0;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.5;
}
.badge {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 500;
}
.badge.warn {
    background: rgba(255, 179, 71, 0.1);
    color: #f5c46b;
}
/* What waits for the owner on a flow: a small blue note */
.waiting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: var(--blue-2);
    font-size: 12px;
}
.waiting::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.address {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.address:hover {
    color: var(--ink-2);
}
.card-row.flow {
    align-items: flex-start;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 50%;
}
.row-actions form,
.card-row > form {
    margin: 0;
}
/* The small actions on a row */
.mini {
    height: 30px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        scale 0.15s;
}
.mini:hover {
    background: var(--card-2);
    color: var(--ink);
}
.mini:active {
    scale: 0.97;
}
.mini.deny {
    border-color: rgba(255, 90, 90, 0.16);
    color: #ff9e9e;
}
.mini.deny:hover {
    background: #1a080a;
    border-color: rgba(255, 90, 90, 0.3);
}
.card-row.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.card-row.actions .go,
.card-row.actions .way {
    font-size: 13px;
}
.tile.small {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.tile.small::after {
    display: none;
}
.inline-link {
    color: var(--ink-2);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.inline-link:hover {
    color: var(--ink);
}
.confirm-delete {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.confirm-delete input {
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
}
.confirm-delete input::placeholder {
    color: #4a4a4a;
}
.confirm-delete input:focus {
    border-color: rgba(255, 90, 90, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.1);
}
.confirm-delete .way.deny {
    padding: 0 16px;
}
.good {
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(77, 255, 136, 0.06);
    box-shadow: inset 0 0 0 1px rgba(77, 255, 136, 0.18);
    color: #8ff0b0;
    font-size: 13px;
}
.nav form {
    margin: 0;
}
.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    transition:
        color 0.2s,
        background 0.2s;
}
.nav-button:hover {
    color: var(--ink);
    background: var(--card-2);
}
@media (max-width: 560px) {
    .card-row.flow {
        flex-direction: column;
    }
    .row-actions {
        max-width: none;
        justify-content: flex-start;
    }
    .card-row.actions,
    .confirm-delete {
        grid-template-columns: 1fr;
    }
}

/* ——— Account: the plan, and compact rows ——— */

/* Your account, signed in: your initial on a small round tile, the words
   beside it, the whole pill lit so it isn't missed */
.nav nav a.me {
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: #161616;
    color: var(--ink);
}
.nav nav a.me:hover {
    background: #1f1f1f;
}
.nav nav a.me .avatar {
    align-self: center;
    margin-top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2a2a2a;
    box-shadow: none;
    color: var(--ink);
    font-size: 11px;
}
.nav nav a.me .avatar svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}
.nav nav a.on {
    color: var(--ink);
}
/* Pro, offered under Free: a toggle for the period, what it adds, one button */
.card-row.upsell {
    display: grid;
    gap: 16px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.015);
}
.upsell-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.price {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.price small {
    margin-left: 4px;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}
/*
 * Switching the period: the pill slides across, the price swaps in place
 * (old one out, new one in, at the same moment), and the button stays put
 * while only its words change. Both prices and both links are always there,
 * stacked, so nothing jumps; the radio buttons decide which shows.
 */
.price,
.go-stack {
    display: grid;
}
.price > span,
.go-stack > .go {
    grid-area: 1 / 1;
    transition:
        opacity 0.22s var(--out),
        translate 0.28s var(--out),
        filter 0.22s var(--out);
}
.price > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
/* The one not chosen. Hidden from the keyboard too, once it has faded */
.upsell .monthly,
#bill-monthly:checked ~ .upsell-head .yearly,
#bill-monthly:checked ~ .go-stack .yearly {
    visibility: hidden;
    transition:
        opacity 0.22s var(--out),
        translate 0.28s var(--out),
        filter 0.22s var(--out),
        visibility 0s linear 0.22s;
    opacity: 0;
    translate: 0 5px;
    filter: blur(3px);
    pointer-events: none;
}
#bill-monthly:checked ~ .upsell-head .yearly,
#bill-monthly:checked ~ .go-stack .yearly {
    translate: 0 -5px;
}
#bill-monthly:checked ~ .upsell-head .monthly,
#bill-monthly:checked ~ .go-stack .monthly {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    filter: none;
    pointer-events: auto;
}
/* The button's face belongs to the stack, so it never fades: only the
   words on it cross over */
.go-stack {
    position: relative;
    border-radius: 14px;
    /* Solid, never a gradient: buttons are one flat dark colour */
    background: #0b0b0b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: filter 0.2s;
}
.go-stack:hover {
    filter: brightness(1.2);
}
.go-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: var(--rainbow);
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    opacity: 0.8;
    transition:
        left 0.4s var(--out),
        right 0.4s var(--out);
}
.go-stack:hover::before {
    left: 4%;
    right: 4%;
}
.go-stack > .go {
    background: none;
    box-shadow: none;
}
.go-stack > .go::before {
    display: none;
}
.go-stack > .go:hover {
    filter: none;
}
.save {
    align-self: center;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(77, 255, 136, 0.1);
    color: #8ff0b0;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
}
#bill-yearly:checked ~ .upsell-head .save {
    animation: save-pop 0.5s var(--spring);
}
@keyframes save-pop {
    from {
        scale: 0.7;
        opacity: 0;
    }
}
.switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px var(--line);
}
.switch-pill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: translate 0.4s var(--spring);
}
#bill-yearly:checked ~ .upsell-head .switch-pill {
    translate: 100% 0;
}
.switch label {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4px 12px;
    border-radius: 7px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.switch label:hover {
    color: var(--ink-2);
}
#bill-yearly:checked ~ .upsell-head [for='bill-yearly'],
#bill-monthly:checked ~ .upsell-head [for='bill-monthly'] {
    color: var(--ink);
}
#bill-yearly:focus-visible ~ .upsell-head [for='bill-yearly'],
#bill-monthly:focus-visible ~ .upsell-head [for='bill-monthly'] {
    outline: 2px solid var(--blue-2);
    outline-offset: 1px;
}
.gets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 13px;
}
.row-title.quiet {
    color: var(--ink-2);
    font-size: 13px;
}
/* Going back to Free: red minuses, the opposite of Pro's green ticks */
.gets.lose svg {
    stroke: #ff6b6b;
    stroke-width: 1.8;
    opacity: 0.9;
}
.card-row.upsell > form {
    margin: 0;
}
.card-row.upsell > form .go {
    width: 100%;
}
.gets li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.gets svg {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}
/* Profile: a label on the left, its value on the right */
.card-row.kv {
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    font-size: 13px;
}
.card-row.kv > span:first-child {
    color: var(--ink-3);
}
.card-row.kv > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--ink);
}
/* A profile row that opens to edit it in place */
details.card-row.editable {
    display: block;
    padding: 0;
}
details.editable summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 16px;
    font-size: 13px;
    list-style: none;
    cursor: pointer;
}
details.editable summary::-webkit-details-marker {
    display: none;
}
.kv-label {
    color: var(--ink-3);
}
.kv-value {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
    color: var(--ink);
}
.kv-value.unset {
    color: var(--ink-3);
}
.edit-word {
    display: grid;
    min-width: 48px;
    color: var(--ink-3);
    text-align: right;
    transition: color 0.2s;
}
.edit-word > span {
    grid-area: 1 / 1;
    transition:
        opacity 0.2s var(--out),
        translate 0.25s var(--out);
}
.close-word {
    opacity: 0;
    translate: 0 4px;
}
details.editable[open] .open-word {
    opacity: 0;
    translate: 0 -4px;
}
details.editable[open] .close-word {
    opacity: 1;
    translate: 0 0;
}
details.editable summary:hover .edit-word {
    color: var(--ink);
}
.edit-body {
    padding: 0 16px 14px;
}
details.editable[open] .edit-body {
    animation: open-down 0.35s var(--out);
}
.edit-body form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin: 0;
}
.edit-body input {
    height: 36px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.edit-body input::placeholder {
    color: #4a4a4a;
}
.edit-body input:focus {
    border-color: rgba(77, 154, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(77, 154, 255, 0.15);
}
.edit-body .mini {
    height: 36px;
}
.hint {
    margin: 8px 2px 0;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.5;
}

/* No agents yet: the steps right here, not a link away */
.card-row.connect-here {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
}
.card-row .term {
    font-size: 12px;
}
/* With agents: another can be added by opening this row */
details.card-row.more {
    display: block;
    padding: 0;
}
details.more summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--ink-2);
    font-size: 13px;
    list-style: none;
    cursor: pointer;
    transition: color 0.2s;
}
details.more summary::-webkit-details-marker {
    display: none;
}
details.more summary:hover {
    color: var(--ink);
}
.plus {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #1a1a1a;
}
.plus::before,
.plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    translate: -50% -50%;
    transition: rotate 0.35s var(--spring);
}
.plus::after {
    rotate: 90deg;
}
details.more[open] .plus::before {
    rotate: 45deg;
}
details.more[open] .plus::after {
    rotate: 135deg;
}
.more-body {
    padding: 0 16px 16px;
}
details.more[open] .more-body {
    animation: open-down 0.4s var(--out);
}
@keyframes open-down {
    from {
        opacity: 0;
        translate: 0 -6px;
        filter: blur(4px);
    }
}
/* Sessions: a live green dot for this browser, a quiet one for the rest */
.dot-live,
.dot-idle {
    flex: none;
    align-self: flex-start;
    width: 8px;
    height: 8px;
    /* Centred on the first line of the row's title (14px at 1.5) */
    margin: 6.5px 7px 0;
    border-radius: 50%;
}
.dot-live {
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(77, 255, 136, 0.5);
    animation: dot-live 2.4s var(--out) infinite;
}
@keyframes dot-live {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 255, 136, 0.45);
    }
    70%,
    100% {
        box-shadow: 0 0 0 7px rgba(77, 255, 136, 0);
    }
}
.dot-idle {
    background: #3a3a3a;
}

/* One line per agent or session: small avatar, name, quiet detail */
.card-row.tight {
    /* From the top, so the avatar or dot sits level with the title
       whether the row is one line or two. The action stays centred */
    align-items: flex-start;
    gap: 12px;
    padding: 11px 16px;
}
.card-row.tight > form {
    align-self: center;
}
.avatar {
    display: grid;
    flex: none;
    /* Level with the first line of the title (14px at 1.5 is 21px tall),
       not the middle of a row that wraps onto two */
    align-self: flex-start;
    margin-top: -0.5px;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #1a1a1a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
}
.line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 0;
    min-width: 0;
}
.line .name,
.line .meta {
    line-height: 21px;
}
.line .name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.line .meta {
    color: var(--ink-3);
    font-size: 13px;
}
/* An action said quietly: grey text, white on hover */
.text-action {
    padding: 4px 6px;
    margin-right: -6px;
    border-radius: 7px;
    color: var(--ink-3);
    font-size: 13px;
    white-space: nowrap;
    transition:
        color 0.2s,
        background 0.2s;
}
.text-action:hover {
    color: var(--ink);
    background: var(--card-2);
}
@media (max-width: 560px) {
    .gets {
        grid-template-columns: 1fr;
    }
    .upsell-head {
        flex-direction: column;
    }
}

/* ——— Flows: a page of cards, built from Rebase UI's pieces ——— */

/* Rebase UI's dark tokens and springs (rebaseui/src/styles/theme.css and
   src/motion/core.ts), for the owner's pages */
:root {
    --surface: #141414;
    --surface-overlay: #232323;
    --fill: #1f1f1f;
    --fill-hover: #2b2b2b;
    --row-hover: #2c2c2c;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text-2: #969696;
    --text-3: #5c5c5c;
    --accent: #5e9aff;
    --accent-soft: rgba(94, 154, 255, 0.16);
    --success: #3cd28b;
    --warning: #fbad29;
    --warning-soft: rgba(251, 173, 41, 0.14);
    --danger: #f7678a;
    --danger-soft: rgba(247, 103, 138, 0.14);
    --shadow-2: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.4);
    --stagger: 33ms;
    --spring-soft: linear(0, 0.045, 0.137, 0.25, 0.369, 0.483, 0.586, 0.675, 0.75, 0.808, 0.858, 0.898, 0.928, 0.951, 0.968, 0.981, 0.989, 0.995, 0.999, 1.001, 1.002, 1.003, 1.003, 1.003, 1.003, 1.002, 1.002, 1.002, 1.001, 1.001, 1.001, 1.001, 1);
    --spring-bounce: linear(0, 0.077, 0.249, 0.444, 0.646, 0.808, 0.941, 1.026, 1.08, 1.101, 1.102, 1.09, 1.07, 1.049, 1.029, 1.014, 1.002, 0.995, 0.991, 0.989, 0.99, 0.991, 0.993, 0.996, 0.998, 0.999, 1, 1.001, 1.001, 1.001, 1.001, 1.001, 1);
    --spring-layout: linear(0, 0.048, 0.128, 0.237, 0.338, 0.447, 0.547, 0.626, 0.702, 0.759, 0.812, 0.856, 0.887, 0.914, 0.934, 0.951, 0.964, 0.973, 0.981, 0.986, 0.99, 0.993, 0.996, 0.997, 0.998, 0.999, 0.999, 1, 1, 1, 1, 1, 1);
}

[data-wide] .wrap {
    max-width: 1040px;
}
.acct.flows {
    gap: 28px;
}
/* An error's status, small and grey above its heading */
.status-code {
    margin: 0 0 -8px;
    color: var(--text-3);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: center;
}

/* A refused change: what was typed, kept, ready to copy */
.kept-box {
    width: 100%;
    max-width: 360px;
    margin: 0 auto -16px;
    border-radius: 12px;
    background: #0c0c0c;
    box-shadow: 0 0 0 1px var(--border-strong);
    text-align: left;
}
.kept-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 6px 0 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
    font-size: 12px;
}
.kept-text {
    max-height: 220px;
    margin: 0;
    padding: 12px 14px 14px;
    overflow: auto;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* No flows yet: ghost cards where real ones will go, fading out, and the
   ask laid over them */
.flows-empty {
    display: grid;
    justify-items: center;
    margin-top: 8px;
}
/* A row of cards to come, dim, fading into the ask below them */
.ghost-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
    pointer-events: none;
}
.ghost-card {
    --i: 0;
    display: flex;
    flex-direction: column;
    height: 212px;
    padding: 16px 14px 14px;
    border-radius: 16px;
    background: #090909;
    box-shadow: 0 0 0 1px var(--border);
    animation: ghost-in 0.9s var(--spring-soft) both;
    animation-delay: calc(120ms + var(--i) * 90ms);
}
.ghost-card:nth-child(2) {
    --i: 1;
}
.ghost-card:nth-child(3) {
    --i: 2;
}
.ghost-card .flow-preview {
    margin-top: 34px;
}
@keyframes ghost-in {
    from {
        opacity: 0;
        translate: 0 14px;
        filter: blur(6px);
    }
}
.ghost-line {
    display: block;
    width: 52%;
    height: 8px;
    border-radius: 4px;
    background: #141414;
}
.ghost-line.short {
    width: 54px;
    margin-left: auto;
}
.ghost-foot {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.ghost-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #141414;
}
/* The ask, over the ghosts, with a dark pool behind it so it reads */
.empty-say {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 480px;
    margin-top: -64px;
    text-align: center;
}
.empty-say h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}
.empty-say > p {
    margin: 6px 0 0;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.5;
}
/* The words to say, in a quiet box, copied with one click */
.ask-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 6px 6px 6px 14px;
    border-radius: 12px;
    background: #0c0c0c;
    box-shadow: 0 0 0 1px var(--border-strong);
    text-align: left;
}
.ask-box q {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.45;
    quotes: none;
}
.ask-box .copy {
    flex: none;
}
.empty-say .empty-hint {
    margin-top: 16px;
    color: var(--text-3);
    font-size: 12.5px;
}
/* Setup, in place: the line opens into the same box as the front page */
.empty-connect {
    width: 100%;
    margin-top: 18px;
}
.empty-connect summary {
    color: var(--text-3);
    font-size: 12.5px;
    list-style: none;
    cursor: pointer;
}
.empty-connect summary::-webkit-details-marker {
    display: none;
}
.empty-connect .u {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--ink-2);
    transition: color 0.2s;
}
/* Points down to open, turns up once open */
.empty-connect .chev {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: rotate 0.35s var(--spring-layout);
}
.empty-connect[open] .chev {
    rotate: 180deg;
}
.empty-connect summary:hover .u {
    color: var(--ink);
}
.empty-connect-body {
    margin-top: 14px;
    text-align: left;
}
.empty-connect[open] .empty-connect-body {
    animation: open-down 0.4s var(--out);
}
@media (max-width: 720px) {
    .ghost-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ghost-card:not(:first-child) {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ghost-card {
        animation: none;
    }
}

/* Past the free limit: which flows are read-only, and when they go */
.read-only-note {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
    padding: 12px 12px 12px 16px;
    border-radius: 14px;
    background: rgba(251, 173, 41, 0.06);
    box-shadow: inset 0 0 0 1px rgba(251, 173, 41, 0.18);
}
.read-only-note p {
    flex: 1;
    margin: 0;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
}
.read-only-note strong {
    color: var(--ink);
    font-weight: 500;
}
.read-only-note .mini {
    display: inline-flex;
    flex: none;
    align-items: center;
    text-decoration: none;
}
@media (max-width: 560px) {
    .read-only-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Tabs on the left, search on the right */
.tabs-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
/* Rebase UI's segmented control: a pill track, a raised thumb that slides
   on the soft spring to the chosen tab */
.seg {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    /* As dark as the cards below, with the same hairline */
    background: #090909;
    box-shadow: 0 0 0 1px var(--border);
}
.seg-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 0;
    z-index: 0;
    border-radius: 999px;
    background: #1c1c1c;
    box-shadow: 0 0 0 1px var(--border);
    transition:
        translate 0.745s var(--spring-soft),
        width 0.745s var(--spring-soft);
}
.seg label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.15s,
        scale 0.1s var(--out);
}
.seg label:hover {
    color: var(--ink);
}
.seg label:active {
    scale: 0.97;
}
.seg .count {
    color: var(--text-3);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s;
}
#show-all:checked ~ .tabs-row [for='show-all'],
#show-waiting:checked ~ .tabs-row [for='show-waiting'],
#show-shared:checked ~ .tabs-row [for='show-shared'],
#show-off:checked ~ .tabs-row [for='show-off'] {
    color: var(--ink);
}
#show-all:checked ~ .tabs-row [for='show-all'] .count,
#show-waiting:checked ~ .tabs-row [for='show-waiting'] .count,
#show-shared:checked ~ .tabs-row [for='show-shared'] .count,
#show-off:checked ~ .tabs-row [for='show-off'] .count {
    color: var(--text-2);
}
/* Without the script there is no sliding thumb: fill the chosen tab */
html:not(.js) #show-all:checked ~ .tabs-row [for='show-all'],
html:not(.js) #show-waiting:checked ~ .tabs-row [for='show-waiting'],
html:not(.js) #show-shared:checked ~ .tabs-row [for='show-shared'],
html:not(.js) #show-off:checked ~ .tabs-row [for='show-off'] {
    background: #1c1c1c;
}
#show-all:focus-visible ~ .tabs-row [for='show-all'],
#show-waiting:focus-visible ~ .tabs-row [for='show-waiting'],
#show-shared:focus-visible ~ .tabs-row [for='show-shared'],
#show-off:focus-visible ~ .tabs-row [for='show-off'] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* Rebase UI's field: on the fill, lit with the accent ring when focused */
.search {
    display: none;
    align-items: center;
    gap: 8px;
    width: 260px;
    max-width: 100%;
    height: 36px;
    padding: 0 6px 0 12px;
    border-radius: 999px;
    background: #090909;
    box-shadow: 0 0 0 1px var(--border);
    color: var(--text-3);
    cursor: text;
    transition:
        background 0.15s var(--out),
        box-shadow 0.15s var(--out),
        width 0.46s var(--spring-layout);
}
.js .search {
    display: flex;
}
.search:hover {
    background: #0d0d0d;
    box-shadow: 0 0 0 1px var(--border-strong);
}
.search:focus-within {
    width: 300px;
    background: #0d0d0d;
    box-shadow:
        0 0 0 1px var(--accent),
        0 0 0 4px var(--accent-soft);
    color: var(--text-2);
}
.search svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
}
.search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    caret-color: var(--accent);
}
.search input::placeholder {
    color: var(--text-3);
}
.search input::-webkit-search-cancel-button {
    display: none;
}
.search kbd {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #1a1a1a;
    color: var(--text-2);
    font: 500 11px/1 Inter, system-ui, sans-serif;
    transition: opacity 0.15s;
}
.search:focus-within kbd {
    opacity: 0;
}

/* What each tab, and the search, leave out */
#show-waiting:checked ~ .flow-grid .flow-card:not(.is-waiting),
#show-shared:checked ~ .flow-grid .flow-card:not(.is-live),
#show-off:checked ~ .flow-grid .flow-card:not(.is-off),
.flow-card.no-match {
    display: none;
}
.tab-empty {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    color: var(--text-2);
    font-size: 13px;
    text-align: center;
}
.tab-empty.searching:not([hidden]) {
    display: block;
}
#show-waiting:checked ~ .flow-grid .tab-empty.waiting,
#show-shared:checked ~ .flow-grid .tab-empty.shared,
#show-off:checked ~ .flow-grid .tab-empty.off {
    display: block;
}
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 860px) {
    .flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .flow-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* A card: Rebase UI's surface with a hairline. Title, when, what needs
   you, a glimpse of the flow fading out, then who's been there */
.flow-card {
    --i: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 212px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: #090909;
    box-shadow: 0 0 0 1px var(--border);
    transition:
        box-shadow 0.2s var(--out),
        background 0.2s var(--out);
}
/* Coming in, and again after a tab or a search: up out of a blur, one
   after another, 33ms apart */
.flow-grid.settle .flow-card {
    animation: card-in 0.46s var(--spring-layout) both;
    animation-delay: calc(var(--i) * var(--stagger));
}
@keyframes card-in {
    from {
        opacity: 0;
        translate: 0 10px;
        scale: 0.98;
        filter: blur(4px);
    }
}
.flow-card.is-live:hover {
    background: #0d0d0d;
    box-shadow: 0 0 0 1px var(--border-strong);
}
.flow-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.flow-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flow-title a {
    color: inherit;
}
/* Something waits for the owner: a small blue dot before the title */
.needs-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 8px 1px 1px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
    vertical-align: middle;
    animation: badge-pop 0.9s var(--spring-bounce) both;
    animation-delay: calc(var(--i, 0) * var(--stagger) + 0.2s);
}
.flow-title a.stretch::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
}
.flow-title a.stretch:focus-visible {
    outline: none;
}
.flow-title a.stretch:focus-visible::after {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.flow-when {
    margin: 0 0 0 auto;
    color: var(--text-3);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* What needs the owner: Rebase UI's soft badges */
.flow-needs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}
.soft {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    animation: badge-pop 0.9s var(--spring-bounce) both;
    animation-delay: calc(var(--i, 0) * var(--stagger) + 0.2s);
}
@keyframes badge-pop {
    from {
        scale: 0.6;
        opacity: 0;
    }
}
.soft.accent {
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 72%, #fff);
}
.soft.warning {
    background: var(--warning-soft);
    color: color-mix(in srgb, var(--warning) 70%, #fff);
}
.flow-preview {
    flex: 1;
    min-height: 0;
    /* Room above, so the map sits well below the title, with space for
       a title that one day runs to two lines */
    margin-top: 40px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}
/* A short flow (or none) sits in the middle of the space, unfaded */
.flow-preview.short {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    mask-image: none;
}
/* The mini map: dark bars, the start a shade lighter, faint curves */
.no-map {
    margin: 0;
    color: var(--text-3);
    font-size: 12px;
    text-align: center;
}
.mini-map {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.map-bar {
    fill: #121212;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}
.map-bar.start {
    fill: #1c1c1c;
    stroke: rgba(255, 255, 255, 0.09);
}
.map-link {
    fill: none;
    stroke: #1c1c1c;
    stroke-width: 1.2;
}
/* A link that ran out: a small note before the time, nothing louder */
.flow-expired {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    color: var(--text-2);
}
.flow-expired svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.flow-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 18px;
    margin-top: 8px;
}
/* Rebase UI's avatar group: overlapping, each cut out of the one before */
.faces {
    display: inline-flex;
    flex: none;
    padding-left: 4px;
}
.face {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-left: -4px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #090909;
    font-size: 8.5px;
    font-weight: 600;
    /* Capitals sit centred, not on a line box built for lowercase */
    line-height: 1;
    text-box: trim-both cap alphabetic;
    font-variant-numeric: tabular-nums;
}
.face.hue0 {
    background: color-mix(in srgb, var(--accent) 22%, var(--surface));
    color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.face.hue1 {
    background: color-mix(in srgb, var(--success) 20%, var(--surface));
    color: color-mix(in srgb, var(--success) 70%, #fff);
}
.face.hue2 {
    background: color-mix(in srgb, var(--warning) 20%, var(--surface));
    color: color-mix(in srgb, var(--warning) 70%, #fff);
}
.face.more {
    background: var(--fill-hover);
    color: var(--text-2);
}
.flow-last {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-2);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.state {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: 12px;
}
.state::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-3);
}
.state.live {
    color: color-mix(in srgb, var(--success) 70%, #fff);
}
.state.live::before {
    background: var(--success);
    box-shadow: 0 0 6px color-mix(in srgb, var(--success) 60%, transparent);
}

/* A card with its menu open sits above the cards after it, so the menu
   is never cut off by the next row */
.flow-card:has(details.menu[open]) {
    z-index: 5;
}
/* Rebase UI's menu: three dots, a panel that blurs in, 32px rows */
details.menu {
    position: relative;
    z-index: 2;
    flex: none;
    margin: -4px -6px 0 0;
}
details.menu summary {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--text-2);
    list-style: none;
    cursor: pointer;
    transition: scale 0.1s var(--out);
}
details.menu summary:active {
    scale: 0.97;
}
details.menu summary::-webkit-details-marker {
    display: none;
}
details.menu summary:hover,
details.menu[open] summary {
    background: var(--fill-hover);
    color: var(--ink);
}
details.menu summary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.menu-pop {
    position: absolute;
    top: 32px;
    right: 0;
    display: grid;
    width: 224px;
    padding: 5px;
    border-radius: 12px;
    background: #111;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 16px 40px -8px rgba(0, 0, 0, 0.8);
    transform-origin: top right;
}
details.menu[open] .menu-pop {
    animation: pop-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop-in {
    from {
        opacity: 0;
        scale: 0.96;
        translate: 0 -4px;
        filter: blur(3px);
    }
}
/* The link, as it stands: a lit dot when it's live, a line under */
.menu-head {
    display: grid;
    gap: 3px;
    padding: 7px 9px 8px;
}
.menu-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 500;
}
.menu-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3a3a3a;
}
.menu-head.is-live .menu-dot {
    background: var(--success);
    box-shadow: 0 0 6px color-mix(in srgb, var(--success) 55%, transparent);
}
.menu-sub {
    margin: 0 0 0 13px;
    color: var(--text-3);
    font-size: 12px;
}
.menu-sep {
    height: 1px;
    margin: 4px -5px;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
}
.menu-pop form {
    margin: 0;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
    transition:
        background 0.12s var(--out),
        color 0.12s var(--out);
}
.menu-icon {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--text-3);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.12s var(--out);
}
.menu-item:hover,
.menu-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    outline: none;
}
.menu-item:hover .menu-icon,
.menu-item:focus-visible .menu-icon {
    stroke: var(--ink);
}
.menu-item.danger {
    color: var(--danger);
}
.menu-item.danger .menu-icon {
    stroke: currentColor;
}
.menu-item.danger:hover,
.menu-item.danger:focus-visible {
    background: var(--danger-soft);
    color: color-mix(in srgb, var(--danger) 80%, #fff);
}
@media (prefers-reduced-motion: reduce) {
    .flow-grid.settle .flow-card,
    .soft {
        animation: none;
    }
}

/* A quiet page: one job, in the middle of the window, smaller text */
[data-quiet] .logo {
    margin-left: 0;
}
/* The logo over the heading; the heading follows close under it */
[data-quiet] .mark-top {
    margin-bottom: -10px;
}
[data-quiet] .hero.wrap {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-block: 0 12vh;
    text-align: center;
}
[data-quiet] .statement {
    max-width: 26em;
    font-size: 15px;
    margin-inline: auto;
}
/* The line under the heading is the quieter one: grey, so the heading
   leads. The script's words land in the same grey */
[data-quiet] .statement + .statement {
    margin-top: 0.4em;
    color: var(--ink-2);
}
.js[data-quiet] .statement + .statement.words .w {
    color: var(--ink-2);
}
[data-quiet] .hero.wrap {
    gap: 28px;
}

/* The line under a form belongs to it, so it sits close */
.auth + .next {
    margin-top: -6px;
}
/* A link in a line of text: white, a solid line under it. On hover the
   line fades away downwards, and rises back into place after */
.next a {
    position: relative;
    color: var(--ink);
}
.next a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
    transition:
        opacity 0.3s var(--out),
        translate 0.35s var(--out);
}
.next a:hover::after,
.next a:focus-visible::after {
    opacity: 0;
    translate: 0 4px;
}

@media (max-width: 420px) {
    .pm label {
        padding: 0 7px;
    }
    .copy-label {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
