/* BriefBar's website: one page in the system's fonts, light or dark like the app, following the Mac's appearance
   unless the visitor picks one. Its colors are the app's: orange for what needs you, red for what went wrong, green
   for what's done, blue for what's running. */

:root {
    color-scheme: light dark;
    --bg: light-dark(#f8f6fd, #0b0a13);
    --nav-bg: light-dark(rgb(248 246 253 / .72), rgb(11 10 19 / .68));
    --tint: light-dark(rgb(232 225 250 / .55), rgb(255 255 255 / .028));
    --text: light-dark(#1d1d1f, #f5f5f7);
    --text-2: light-dark(#4b4b5f, #b8b8c9);
    --text-3: light-dark(#66667a, #9090a6);
    --line: light-dark(rgb(40 30 80 / .12), rgb(255 255 255 / .11));
    --glass: light-dark(rgb(255 255 255 / .62), rgb(30 28 46 / .55));
    --glass-strong: light-dark(rgb(255 255 255 / .86), rgb(36 34 54 / .82));
    --shadow: light-dark(rgb(70 50 140 / .2), rgb(0 0 0 / .6));
    --glow: light-dark(rgb(150 125 255 / .45), rgb(110 90 255 / .38));
    --blue: light-dark(#0062e0, #3d9bff);
    --orange: light-dark(#b35500, #ff9f0a);
    --green: light-dark(#157a34, #30d158);
    --red: light-dark(#d1281f, #ff5f57);
    --pink: light-dark(#cc1d58, #ff5c86);
    --purple: light-dark(#8a3fd1, #c77dff);
    --teal: light-dark(#00808f, #4fd1e0);
    --switch-on: #0a84ff;
    --accent: var(--blue);
    --radius: 22px;
    --gutter: clamp(20px, 5vw, 40px);
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }

:focus-visible {
    outline: 3px solid color-mix(in srgb, #0a84ff 75%, transparent);
    outline-offset: 3px;
    border-radius: 8px;
}

code, kbd { font-family: var(--mono); font-size: .88em; }

p code, dd code, li code {
    padding: .1em .4em;
    border-radius: 6px;
    background: var(--line);
}

kbd {
    padding: .05em .4em;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--glass-strong);
    font-family: var(--font);
}

h1, h2, h3 { margin: 0; color: var(--text); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(100% - 2 * var(--gutter), 1180px);
    margin-inline: auto;
}

/* The light of the app's wallpaper behind the whole page. */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(65vmax 45vmax at 8% -12%,
            light-dark(rgb(170 150 255 / .42), rgb(94 92 230 / .26)), transparent 70%),
        radial-gradient(55vmax 40vmax at 104% 4%,
            light-dark(rgb(255 170 210 / .42), rgb(191 90 242 / .18)), transparent 70%),
        radial-gradient(65vmax 50vmax at 50% 115%,
            light-dark(rgb(150 200 255 / .34), rgb(10 132 255 / .13)), transparent 70%);
}

/* Navigation */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 28px; height: 28px; }

.nav__links {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: .92rem;
}
.nav__links a { color: var(--text-2); }
.nav__links a:hover { color: var(--text); text-decoration: none; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { flex: none; width: 1.15em; height: 1.15em; }

/* Blues dark enough for white text, at 4.5:1 or more, throughout. */
.button--primary {
    color: #fff;
    background: linear-gradient(180deg, #1268f0, #0052cc);
    box-shadow: 0 10px 26px -10px rgb(18 104 240 / .75), inset 0 1px 0 rgb(255 255 255 / .25);
}
.button--primary:hover { box-shadow: 0 14px 32px -10px rgb(18 104 240 / .85), inset 0 1px 0 rgb(255 255 255 / .25); }

.button--secondary {
    color: var(--text);
    background: var(--glass-strong);
    border-color: var(--line);
    box-shadow: 0 10px 26px -18px var(--shadow);
}

.button--large { padding: 15px 26px; font-size: 1.06rem; }
.button--small { padding: 8px 15px; font-size: .88rem; }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--text-2);
    background: transparent;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.icon-button:hover { color: var(--text); background: var(--line); text-decoration: none; }
.icon-button svg { width: 20px; height: 20px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* The Homebrew command, which a click copies. */
.copy-command {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 12px 16px 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: var(--glass);
    font: 500 .95rem/1.3 var(--mono);
    text-align: left;
    cursor: copy;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color .2s, background-color .2s;
}
.copy-command:hover { border-color: color-mix(in srgb, #0a84ff 50%, transparent); background: var(--glass-strong); }
.copy-command code { padding: 0; background: none; font: inherit; overflow-wrap: anywhere; }
.copy-command__prompt { color: var(--text-3); user-select: none; }
.copy-command__icon { display: grid; flex: none; width: 18px; height: 18px; color: var(--text-3); }
.copy-command__icon svg {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
    transition: opacity .2s, transform .2s var(--ease);
}
.copy-command .icon-check { opacity: 0; transform: scale(.5); color: var(--green); }
.copy-command.is-copied .icon-copy { opacity: 0; transform: scale(.5); }
.copy-command.is-copied .icon-check { opacity: 1; transform: none; }

.copy-command--block {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    border-radius: 14px;
    font-size: .86rem;
}

/* Hero */

.hero {
    position: relative;
    padding-top: clamp(52px, 8vw, 104px);
    text-align: center;
}

.hero__intro { display: flex; flex-direction: column; align-items: center; }

.release-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    background: var(--glass);
    font-size: .88rem;
    font-weight: 550;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: color .2s, border-color .2s;
}
.release-pill:hover {
    color: var(--text);
    text-decoration: none;
    border-color: color-mix(in srgb, var(--green) 45%, transparent);
}
.release-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent);
}
.release-pill__arrow { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.release-pill:hover .release-pill__arrow { transform: translateX(2px); }

h1 {
    max-width: 21ch;
    margin-top: 24px;
    font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.6rem);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(100deg,
        light-dark(#e06400, #ff9f0a) 0%,
        light-dark(#e0245e, #ff5c86) 36%,
        light-dark(#9a3fe0, #c77dff) 68%,
        light-dark(#0a62e6, #3d9bff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.lead {
    max-width: 44rem;
    margin: 20px 0 0;
    color: var(--text-2);
    font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
    line-height: 1.5;
    text-wrap: pretty;
}
.lead strong { color: var(--text); }
.hero .lead { margin-inline: auto; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.fineprint { margin: 18px 0 0; color: var(--text-3); font-size: .9rem; text-wrap: balance; }
.fineprint + .fineprint { margin-top: 6px; }

.hero__visual {
    position: relative;
    margin-top: clamp(48px, 7vw, 80px);
    padding-bottom: clamp(56px, 8vw, 110px);
}

.hero__frame {
    position: relative;
    width: min(100%, 737px);
    margin-inline: auto;
    transform-origin: 50% 0;
}
.hero__frame::before {
    content: "";
    position: absolute;
    inset: 4% -16% -8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    filter: blur(40px);
}
.hero__frame img {
    border-radius: 18px;
    box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px var(--shadow), 0 24px 48px -24px var(--shadow);
}

/* Notifications of the kind BriefBar counts, floating around the menu bar: decoration, hidden from assistive tech. */
.float-chips { margin: 0; padding: 0; list-style: none; }

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 270px;
    padding: 11px 16px 11px 11px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass-strong);
    box-shadow: 0 24px 50px -24px var(--shadow);
    text-align: left;
    font-size: .82rem;
    line-height: 1.35;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    animation: float 7s ease-in-out infinite alternate;
}
.float-chip > span:last-child { min-width: 0; }
.float-chip strong { display: block; color: var(--chip); font-size: .9rem; }
.float-chip strong + span {
    display: block;
    overflow: hidden;
    color: var(--text-2);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.float-chip__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--chip);
}
.float-chip__icon svg { width: 18px; height: 18px; }
.float-chip:nth-child(1) { top: 26%; left: -230px; }
.float-chip:nth-child(2) { top: 48%; right: -240px; animation-delay: -2.5s; }
.float-chip:nth-child(3) { top: 75%; left: -190px; animation-delay: -5s; }

@keyframes float {
    from { transform: translateY(-7px); }
    to { transform: translateY(7px); }
}

/* Sections */

.section {
    position: relative;
    padding-block: clamp(72px, 8.5vw, 120px);
}

.section--tinted {
    background: linear-gradient(180deg, transparent, var(--tint) 14%, var(--tint) 86%, transparent);
}

.accent-orange { --accent: var(--orange); }
.accent-blue { --accent: var(--blue); }
.accent-green { --accent: var(--green); }
.accent-purple { --accent: var(--purple); }
.accent-pink { --accent: var(--pink); }
.accent-teal { --accent: var(--teal); }

.section-head { max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
/* A part of a section with a heading of its own, such as My Work under Pull Request Order. */
.section-head--part { margin-top: clamp(80px, 10vw, 136px); }
.section-head--part h3 {
    font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--accent);
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: .01em;
}
.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}

h2 {
    font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.035em;
    text-wrap: balance;
}

h3 {
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.note { margin: 24px 0 0; color: var(--text-3); font-size: .95rem; text-wrap: pretty; }
.note strong { color: var(--text-2); }
.note--center { max-width: 760px; margin-inline: auto; text-align: center; }

/* Pictures of the app, each a link to its full size. */
.shot { position: relative; margin: 0; }
.shot::before {
    content: "";
    position: absolute;
    inset: 8% 6%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
    filter: blur(50px);
}
.shot img {
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow), 0 18px 36px -24px var(--shadow);
}
.shot--wide { max-width: 1080px; margin: clamp(40px, 6vw, 64px) auto 0; }
.shot--narrow img { margin-inline: auto; width: min(100%, 560px); }

.zoom { display: block; border-radius: 14px; cursor: zoom-in; }
.hero__frame .zoom { border-radius: 18px; }

/* At a glance: a tab for each place BriefBar shows what needs you, which change by themselves until you pick one. The
   script makes the tabs from links to each picture; until it has, or without it, every picture shows, one under
   another, with the links and all their text beside them. */
.showcase {
    --stage-height: clamp(340px, 48vw, 600px);
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    margin-top: clamp(44px, 6vw, 72px);
}

.showcase__tabs { display: flex; flex-direction: column; gap: 6px; }

.showcase__tab {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 18px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--text-2);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s;
}
.showcase__tab:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.showcase__tab[aria-selected="true"] {
    color: var(--text);
    background: var(--glass-strong);
    border-color: var(--line);
    box-shadow: 0 16px 36px -24px var(--shadow);
}

.showcase__tab-title { display: block; font-size: 1.05rem; font-weight: 650; }

.showcase__tab-text {
    display: grid;
    grid-template-rows: 1fr;
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.45;
    transition: grid-template-rows .4s var(--ease);
}
.showcase__tab-text > span { overflow: hidden; padding-top: 4px; }
/* As tabs, only the chosen one's text shows. */
.showcase.is-tabbed .showcase__tab:not([aria-selected="true"]) .showcase__tab-text { grid-template-rows: 0fr; }
.showcase.is-tabbed .showcase__tab:not([aria-selected="true"]) .showcase__tab-text > span { padding-top: 0; }

.showcase__progress {
    position: absolute;
    right: 18px;
    bottom: 8px;
    left: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    opacity: 0;
    overflow: hidden;
}
.showcase__progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}
.showcase.is-autoplay .showcase__tab[aria-selected="true"] .showcase__progress { opacity: 1; }
.showcase.is-autoplay .showcase__tab[aria-selected="true"] .showcase__progress::after {
    animation: showcase-progress 6.5s linear forwards;
}
.showcase.is-paused .showcase__progress::after,
.showcase.is-offscreen .showcase__progress::after { animation-play-state: paused !important; }

@keyframes showcase-progress { to { transform: scaleX(1); } }

.showcase__stage { position: relative; }
.showcase.is-tabbed .showcase__stage { height: var(--stage-height); }
.showcase__stage::before {
    content: "";
    position: absolute;
    inset: 10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    filter: blur(50px);
}

.showcase__panel {
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    height: var(--stage-height);
    transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s;
}
.showcase.is-tabbed .showcase__panel { position: absolute; inset: 0; height: auto; }
.showcase__panel[hidden] {
    display: grid;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(.985);
}
.showcase__panel .zoom {
    display: grid;
    grid-template: 100% / 100%;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
/* The picture's box gives way to its image, which takes the one cell; its <source>s take none. */
.showcase__panel picture { display: contents; }
.showcase__panel source { display: none; }
.showcase__panel img {
    grid-area: 1 / 1;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow), 0 18px 36px -24px var(--shadow);
}
/* The widget is drawn on a transparent background, with its own rounded corners. */
.showcase__panel--cutout img {
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 30px 40px var(--shadow));
}

/* Before the tabs: the pictures one under another, and the links beside them, staying in view. */
.showcase:not(.is-tabbed) { align-items: start; }
.showcase:not(.is-tabbed) .showcase__tabs { position: sticky; top: 96px; }
.showcase:not(.is-tabbed) .showcase__tab { color: var(--text); }
.showcase:not(.is-tabbed) .showcase__stage { display: grid; gap: 32px; }

/* The sources */

.sources {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(56px, 7vw, 96px);
}

.card,
.source-card,
.promise,
.step,
.setup,
.model {
    border: 1px solid var(--line);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

.source-card {
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 24px 48px -36px var(--shadow);
}
.source-card p { margin: 8px 0 0; color: var(--text-2); font-size: .95rem; }

.source-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(160deg, var(--icon-a), var(--icon-b));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 8px 18px -8px var(--icon-b);
}
.source-card__icon svg { width: 24px; height: 24px; }

/* Pull Request Order: a pull request moving through the stages, as the Board's columns show them. */
.flow {
    max-width: 1080px;
    margin: clamp(44px, 6vw, 72px) auto 0;
    --gap: 12px;
}

.flow__stages {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow__stage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px 10px;
    border-bottom: 3px solid var(--line);
    color: var(--text-3);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    transition: color .5s, border-color .5s;
}
.flow__stage::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--stage);
    opacity: .4;
    transition: opacity .5s;
}
.flow__stage.is-done,
.flow__stage.is-active { color: var(--text); border-bottom-color: var(--stage); }
.flow__stage.is-done::before,
.flow__stage.is-active::before { opacity: 1; }

.flow__track { position: relative; height: 150px; margin-top: 16px; }

.flow__card {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: calc((100% - 5 * var(--gap)) / 6);
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--card-stage, var(--red));
    border-radius: 14px;
    background: var(--glass-strong);
    box-shadow: 0 20px 40px -24px var(--shadow);
    text-align: left;
    transform: translateX(calc(var(--i, 0) * (100% + var(--gap))));
    transition: transform .9s cubic-bezier(.65, 0, .35, 1), border-color .6s, opacity .4s;
}
.flow__card.is-leaving { opacity: 0; }
.flow__card.is-jumping { transition: none; }

.flow__id { color: var(--text-3); font-size: .8rem; font-weight: 600; }
.flow__title { color: var(--text); font-size: .9rem; font-weight: 650; line-height: 1.3; }
.flow__status { color: var(--card-stage, var(--red)); font-size: .8rem; font-weight: 600; transition: color .6s; }

/* Cards under the Board */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.card { padding: 24px; border-radius: var(--radius); }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: .97rem; }

/* Text beside a picture */
.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip .split__text { order: 2; }

.feature-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-2);
}
.feature-list li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.feature-list strong { color: var(--text); }

.quote {
    margin: 24px 0 0;
    font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--accent);
}

.models {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}
.model { padding: 18px 20px; border-radius: 16px; }
.model h3 { font-size: 1rem; }
.model p { margin: 6px 0 0; color: var(--text-2); font-size: .92rem; }

.action-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.action-chips li {
    padding: 5px 12px;
    border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent);
    border-radius: 999px;
    color: var(--blue);
    background: color-mix(in srgb, var(--blue) 9%, transparent);
    font-size: .86rem;
    font-weight: 600;
}

/* /briefbar, typed as you reach it */
.terminal {
    overflow: hidden;
    border-radius: 18px;
    color: #ececf3;
    background: linear-gradient(180deg, #1f1d2c, #15141f);
    box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 50px 90px -40px var(--shadow), 0 20px 40px -24px var(--shadow);
    text-align: left;
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid rgb(255 255 255 / .07);
    background: rgb(255 255 255 / .03);
}
.terminal__bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar em {
    margin-left: 10px;
    color: rgb(255 255 255 / .55);
    font-size: .82rem;
    font-style: normal;
    font-weight: 600;
}

.terminal__body { display: grid; gap: 22px; margin: 0; padding: 26px 26px 6px; }
.terminal dt { color: #fff; font: 600 .98rem/1.4 var(--mono); }
.terminal dd {
    margin: 8px 0 0 22px;
    color: rgb(236 236 243 / .72);
    font-size: .97rem;
    line-height: 1.5;
}
.terminal__prompt { color: #c77dff; }
.terminal__command { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; }
.terminal__ready { margin: 0; padding: 16px 26px 26px; font: 600 .98rem/1.4 var(--mono); }
.terminal__caret {
    display: inline-block;
    width: .6em;
    height: 1.15em;
    margin-left: 6px;
    vertical-align: text-bottom;
    border-radius: 2px;
    background: #c77dff;
    animation: blink 1.1s steps(1) infinite;
}

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

.js .terminal .terminal__command { width: 0; }
.js .terminal dd { opacity: 0; transform: translateY(6px); }
.js .terminal.is-visible .terminal__command {
    animation: typing calc(var(--chars) * 60ms) steps(var(--chars), end) var(--delay) forwards;
}
.js .terminal.is-visible dd {
    animation: appear .5s var(--ease) calc(var(--delay) + var(--chars) * 60ms + .25s) forwards;
}

@keyframes typing { to { width: calc(var(--chars) * 1ch); } }
@keyframes appear { to { opacity: 1; transform: none; } }

/* Privacy */
.privacy {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 20px;
    align-items: start;
    margin-top: clamp(44px, 6vw, 72px);
}

.settings-panel {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--glass-strong);
    box-shadow: 0 30px 60px -40px var(--shadow);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}
.settings-panel__title { margin: 0; padding: 14px 18px 8px; color: var(--text-3); font-size: .88rem; font-weight: 650; }

.settings-list { margin: 0; padding: 0; list-style: none; }

.setting {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}
.setting:first-child { border-top: 0; }
.setting > div { flex: 1; min-width: 0; }
.setting__name { margin: 0; font-weight: 600; }
.setting__text { margin: 2px 0 0; color: var(--text-2); font-size: .92rem; }

.switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: light-dark(#dddbe6, #3b3950);
    cursor: pointer;
    transition: background-color .25s;
}
.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / .22);
    transition: transform .3s cubic-bezier(.3, .7, .4, 1.3);
}
.switch[aria-checked="true"] { background: var(--switch-on); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.promises { display: grid; gap: 16px; }
.promise { padding: 22px 24px; border-radius: var(--radius); }
.promise h3 { display: flex; align-items: center; gap: 10px; }
.promise h3 svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.promise p { margin: 8px 0 0; color: var(--text-2); font-size: .95rem; }

/* Get started */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: clamp(44px, 6vw, 64px) 0 0;
    padding: 0;
    list-style: none;
}
.step { padding: 26px; border-radius: var(--radius); }
.step p { margin: 10px 0 0; color: var(--text-2); font-size: .97rem; }
.step p strong { color: var(--text); }
.step__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(160deg, #1268f0, #0052cc);
    box-shadow: 0 8px 16px -8px #0052cc;
    font-weight: 700;
}

.setup { margin-top: 16px; padding: 26px; border-radius: var(--radius); }
.setup__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 36px;
    margin: 16px 0 0;
}
.setup__list dt { font-weight: 650; }
.setup__list dd { margin: 4px 0 0; color: var(--text-2); font-size: .95rem; }

/* The last call to download */
.final-cta {
    padding-block: clamp(72px, 9vw, 130px);
    text-align: center;
}
.final-cta__inner { display: flex; flex-direction: column; align-items: center; }
.final-cta__icon { position: relative; width: 128px; height: 128px; margin-bottom: 30px; }
.final-cta__icon::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow), transparent);
    animation: breathe 5s ease-in-out infinite alternate;
}
.final-cta__icon img { filter: drop-shadow(0 24px 30px rgb(10 70 180 / .4)); }
.final-cta h2 { max-width: 16ch; }

@keyframes breathe {
    from { transform: scale(.85); opacity: .7; }
    to { transform: scale(1.1); opacity: 1; }
}

/* Footer */
.footer {
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: .92rem;
}
.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
}
.footer__name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
}
.footer__brand p + p { margin: 10px 0 0; }
.footer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h2 { margin-bottom: 12px; font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: .85rem;
}
.footer__legal p { margin: 0; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* A picture at full size */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop {
    background: rgb(8 6 18 / .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.lightbox img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    border-radius: 12px;
    box-shadow: 0 40px 100px rgb(0 0 0 / .55);
}
.lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgb(255 255 255 / .16);
    cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; }

/* What appears as you scroll, once the script runs. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--stagger, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The menu bar tilts toward you as you reach it, where the browser can tie an animation to scrolling. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .hero__frame {
            animation: tilt-in linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 50%;
        }
    }
}

@keyframes tilt-in {
    from { transform: perspective(1600px) rotateX(16deg) scale(.95); }
    to { transform: perspective(1600px) rotateX(0) scale(1); }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .45s; }

/* Narrower windows */

@media (max-width: 1240px) {
    .float-chip:nth-child(1) { left: -140px; }
    .float-chip:nth-child(2) { right: -150px; }
    .float-chip:nth-child(3) { left: -110px; }
}

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

@media (max-width: 960px) {
    .nav__links { display: none; }
    .nav__actions { margin-left: auto; }

    .showcase { --stage-height: clamp(300px, 90vw, 520px); grid-template-columns: minmax(0, 1fr); }
    .showcase:not(.is-tabbed) .showcase__tabs { position: static; }

    .split,
    .split--flip { grid-template-columns: minmax(0, 1fr); }
    .split--flip .split__text { order: 0; }

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

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

@media (max-width: 760px) {
    .flow__stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .flow__track { height: auto; }
    .flow__card {
        position: relative;
        width: min(100%, 320px);
        margin-inline: auto;
        transform: none;
    }
}

@media (max-width: 600px) {
    .sources,
    .models,
    .setup__list { grid-template-columns: minmax(0, 1fr); }
    .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero .copy-command { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .float-chip,
    .final-cta__icon::before,
    .terminal__caret { animation: none; }
    .js .terminal .terminal__command { width: auto; animation: none; }
    .js .terminal dd { opacity: 1; transform: none; animation: none; }
    .showcase__panel,
    .flow__card { transition: none; }
}
