/* Page background: a gray gradient, darker at the top and lighter at the bottom (--bg-top, --bg-bottom), under a fine
   gray grain that also breaks up banding. The grain tiles are Crosspost's, tuned in its noise lab: multiply at 0.25 in
   dark, soft light at 0.5 in light (stronger than Crosspost's 0.15 and 0.35). No hue. */
:root {
  --noise-dark: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'256'%20height%3D'256'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.7'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D'linear'%20slope%3D'2.5'%20intercept%3D'-0.75'%2F%3E%3CfeFuncG%20type%3D'linear'%20slope%3D'2.5'%20intercept%3D'-0.75'%2F%3E%3CfeFuncB%20type%3D'linear'%20slope%3D'2.5'%20intercept%3D'-0.75'%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%20opacity%3D'0.25'%2F%3E%3C%2Fsvg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'256'%20height%3D'256'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.7'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D'linear'%20slope%3D'3'%20intercept%3D'-1'%2F%3E%3CfeFuncG%20type%3D'linear'%20slope%3D'3'%20intercept%3D'-1'%2F%3E%3CfeFuncB%20type%3D'linear'%20slope%3D'3'%20intercept%3D'-1'%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%20opacity%3D'0.5'%2F%3E%3C%2Fsvg%3E");
}
/* Chrome-like neutrals; follows light/dark mode. Group colors match Chrome's palette per mode. */
:root {
  --bg: #f1f3f4; --panel: #ffffff; --line: #dadce0; --card: #f8f9fa; --card-h: #eceef0;
  --text: #202124; --muted: #5f6368; --accent: #1a73e8; --accent-soft: rgba(26,115,232,.10);
  --danger: #d93025; --field: #ffffff; --warn-bg: rgba(249,171,0,.16); --warn-fg: #8a5300;
  --toast-bg: #202124; --toast-fg: #e8eaed; --shadow: 0 2px 8px rgba(60,64,67,.2), 0 1px 2px rgba(60,64,67,.12);
  --g-grey: #5f6368; --g-blue: #1a73e8; --g-red: #d93025; --g-yellow: #f9ab00; --g-green: #1e8e3e;
  --g-pink: #d01884; --g-purple: #a142f4; --g-cyan: #007b83; --g-orange: #fa903e;
  --active-bg: #e1e2e3; --active-bg-h: #dadbdc; --active-muted: #4a4e53; color-scheme: light;
  --bg-top: #d9dce0; --bg-bottom: #f8f9fa; --noise: var(--noise-light); --noise-blend: soft-light;
}
@media not (prefers-color-scheme: light) {
  :root:not([data-theme="light"]) {
    --bg: #202124; --panel: #292a2d; --line: #3c4043; --card: #35363a; --card-h: #3f4044;
    --text: #e8eaed; --muted: #9aa0a6; --accent: #8ab4f8; --accent-soft: rgba(138,180,248,.14);
    --danger: #f28b82; --field: #202124; --warn-bg: rgba(253,214,99,.14); --warn-fg: #fdd663;
    --toast-bg: #e8eaed; --toast-fg: #202124; --shadow: 0 4px 16px rgba(0,0,0,.5);
    --g-grey: #dadce0; --g-blue: #8ab4f8; --g-red: #f28b82; --g-yellow: #fdd663; --g-green: #81c995;
    --g-pink: #ff8bcb; --g-purple: #d7aefb; --g-cyan: #78d9ec; --g-orange: #fcad70;
    --active-bg: #47484d; --active-bg-h: #4d4e52; --active-muted: #c4cbd1; color-scheme: dark;
  --bg-top: #131416; --bg-bottom: #2e2f33; --noise: var(--noise-dark); --noise-blend: multiply;
  }
}
:root[data-theme="dark"] {
  --bg: #202124; --panel: #292a2d; --line: #3c4043; --card: #35363a; --card-h: #3f4044;
  --text: #e8eaed; --muted: #9aa0a6; --accent: #8ab4f8; --accent-soft: rgba(138,180,248,.14);
  --danger: #f28b82; --field: #202124; --warn-bg: rgba(253,214,99,.14); --warn-fg: #fdd663;
  --toast-bg: #e8eaed; --toast-fg: #202124; --shadow: 0 4px 16px rgba(0,0,0,.5);
  --g-grey: #dadce0; --g-blue: #8ab4f8; --g-red: #f28b82; --g-yellow: #fdd663; --g-green: #81c995;
  --g-pink: #ff8bcb; --g-purple: #d7aefb; --g-cyan: #78d9ec; --g-orange: #fcad70;
  --active-bg: #47484d; --active-bg-h: #4d4e52; --active-muted: #c4cbd1; color-scheme: dark;
  --bg-top: #131416; --bg-bottom: #2e2f33; --noise: var(--noise-dark); --noise-blend: multiply;
}

/* Per-column theme, used while the theme switch animates lane by lane. */
.theme-light {
  --bg: #f1f3f4; --panel: #ffffff; --line: #dadce0; --card: #f8f9fa; --card-h: #eceef0;
  --text: #202124; --muted: #5f6368; --accent: #1a73e8; --accent-soft: rgba(26,115,232,.10);
  --danger: #d93025; --field: #ffffff; --warn-bg: rgba(249,171,0,.16); --warn-fg: #8a5300;
  --toast-bg: #202124; --toast-fg: #e8eaed; --shadow: 0 2px 8px rgba(60,64,67,.2), 0 1px 2px rgba(60,64,67,.12);
  --g-grey: #5f6368; --g-blue: #1a73e8; --g-red: #d93025; --g-yellow: #f9ab00; --g-green: #1e8e3e;
  --g-pink: #d01884; --g-purple: #a142f4; --g-cyan: #007b83; --g-orange: #fa903e;
  --active-bg: #e1e2e3; --active-bg-h: #dadbdc; --active-muted: #4a4e53; color-scheme: light;
  --bg-top: #d9dce0; --bg-bottom: #f8f9fa; --noise: var(--noise-light); --noise-blend: soft-light;
}
.theme-dark {
  --bg: #202124; --panel: #292a2d; --line: #3c4043; --card: #35363a; --card-h: #3f4044;
  --text: #e8eaed; --muted: #9aa0a6; --accent: #8ab4f8; --accent-soft: rgba(138,180,248,.14);
  --danger: #f28b82; --field: #202124; --warn-bg: rgba(253,214,99,.14); --warn-fg: #fdd663;
  --toast-bg: #e8eaed; --toast-fg: #202124; --shadow: 0 4px 16px rgba(0,0,0,.5);
  --g-grey: #dadce0; --g-blue: #8ab4f8; --g-red: #f28b82; --g-yellow: #fdd663; --g-green: #81c995;
  --g-pink: #ff8bcb; --g-purple: #d7aefb; --g-cyan: #78d9ec; --g-orange: #fcad70;
  --active-bg: #47484d; --active-bg-h: #4d4e52; --active-muted: #c4cbd1; color-scheme: dark;
  --bg-top: #131416; --bg-bottom: #2e2f33; --noise: var(--noise-dark); --noise-blend: multiply;
}
.theme-light, .theme-dark { color: var(--text); }
body:not(.system-sel):not(.custom-sel) .theme-light, body:not(.system-sel):not(.custom-sel) .theme-dark { --sel: var(--accent); }
.theme-wipe { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat; }
#board { position: relative; z-index: 1; }
.bar { position: relative; z-index: 2; }
.col { backface-visibility: hidden; }

/* Selection color: the theme blue, the system's color when "Match system selection color" is on, or a picked color.
   AccentColor is the OS accent where the browser supports it; Highlight is the text-selection color. */
:root { --sel: var(--accent); }
/* Visible-tab bar: the selection hue mixed toward white, so it's brighter and a little less saturated. */
body.system-sel { --sel: Highlight; }
@supports (color: AccentColor) { body.system-sel { --sel: AccentColor; } }
.sel-pill .stat .ic { color: var(--sel); }


/* The site. Everything above this line is the app's tokens and page background, copied in by site/build.ts. */
/* The marketing page runs a wider gradient than the app, with a second layer of grain below (screen in dark, since
   multiply can't show on near-black). Light's muted text and accent go a step darker to hold their contrast on it. */
:root, :root[data-theme="light"] { --bg-top: #c4c8ce; --bg-bottom: #fdfdfe; --muted: #4f5358; --accent: #1765cc; --key-top: #ffffff; --key-bottom: #eceef0; --key-side: #d2d5d9; --key-hi: #ffffff; --key-lo: #b2b6bb; --key-shadow: rgba(60, 64, 67, .08); --track: rgba(60, 64, 67, .12); --lead-from: #1f6fd8; --lead-to: #0f53b8; --grain-blend: soft-light; --grain: 1; }
@media not (prefers-color-scheme: light) { :root:not([data-theme="light"]) { --bg-top: #08090a; --bg-bottom: #34353a; --muted: #9aa0a6; --accent: #8ab4f8; --key-top: #48494e; --key-bottom: #303135; --key-side: #232427; --key-hi: #66686d; --key-lo: #1c1d20; --key-shadow: rgba(0, 0, 0, .12); --track: rgba(0, 0, 0, .28); --lead-from: #a6c8fb; --lead-to: #6fa5f7; --grain-blend: screen; --grain: .13; } }
:root[data-theme="dark"] { --bg-top: #08090a; --bg-bottom: #34353a; --muted: #9aa0a6; --accent: #8ab4f8; --key-top: #48494e; --key-bottom: #303135; --key-side: #232427; --key-hi: #66686d; --key-lo: #1c1d20; --key-shadow: rgba(0, 0, 0, .12); --track: rgba(0, 0, 0, .28); --lead-from: #a6c8fb; --lead-to: #6fa5f7; --grain-blend: screen; --grain: .13; }
:root { --try: #ffc928; --say: #f9ab00; --cta: #1765cc; --cta-text: #ffffff; }
* { box-sizing: border-box; }
html { overflow-y: scroll; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: var(--noise), linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-size: 256px 256px, auto; background-blend-mode: var(--noise-blend), normal;
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--noise-light) 97px 61px / 256px 256px; mix-blend-mode: var(--grain-blend); opacity: var(--grain); }
a { color: var(--accent); }
main { flex: 1; position: relative; overflow-x: clip; }
@font-face { font-family: Asap; src: url(/fonts/asap-headings.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
h1, h2, h3, .brand, .lockup .name, .say > div { font-family: Asap, system-ui, sans-serif; }
.brand, .lockup .name { font-weight: 600; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }

/* Header and footer */
.top, .foot { display: flex; align-items: center; gap: 24px; width: min(1240px, 100%); margin-inline: auto; padding: 16px; }
.top { justify-content: space-between; position: sticky; top: 0; z-index: 10; width: 100%; padding-block: 8px; padding-inline: max(16px, calc((100% - 1240px) / 2 + 16px)); }
/* On the home page the hero carries the name, so the header brand waits until the hero's has scrolled away. */
.js .home .brand { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.js .home.past-hero .brand { opacity: 1; visibility: visible; transform: none; }
.home.past-hero .top, body:not(.home) .top { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; text-decoration: none; }
.brand img { display: block; }
.top-buttons { display: flex; gap: 8px; }
.top-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.top-button[hidden] { display: none; }
.top-button:hover { background: var(--card-h); }
.top-button svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.tour-paused :is(.try svg, #mouse, #mouse *) { animation-play-state: paused; }
#pageTheme .to-light { display: none; }
#pageTheme .to-dark { display: block; }
@media not (prefers-color-scheme: light) { :root:not([data-theme="light"]) #pageTheme .to-light { display: block; } :root:not([data-theme="light"]) #pageTheme .to-dark { display: none; } }
:root[data-theme="dark"] #pageTheme .to-light { display: block; }
:root[data-theme="dark"] #pageTheme .to-dark { display: none; }
.foot { flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 72px; border-top: 1px solid var(--line); padding-block: 24px; }
.foot nav { display: flex; align-items: center; gap: 16px; }
.home .foot { margin-top: clamp(96px, 11vw, 160px); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .credit { margin-left: auto; }
.foot .marks a { display: block; line-height: 0; }
.foot svg { width: 20px; height: 20px; fill: currentColor; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 16px 72px; }
.lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lockup .name { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -.02em; line-height: 1; }
/* The Figma "Tab Bard mark 96", rebuilt live so the horn can move: the art sits 1:1, 8px in from the sides. */
.tile { width: 96px; height: 96px; padding: 9px 8px 7px; border-radius: 20px; background: linear-gradient(180deg, #424243, #2a2a2c 9%, #161619 62%, #0b0b0c); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.tile svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 20ch; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--lead-from), var(--lead-to)); -webkit-background-clip: text; background-clip: text; }
.hero .lede { max-width: 72ch; margin: 20px 0 24px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); text-wrap: balance; }
.hero .lede span { display: inline-block; }
.hero .lede svg { width: 1.1em; height: 1.1em; margin-right: .2em; vertical-align: -.2em; fill: currentColor; }
.cta { display: inline-block; padding: 11px 22px; border-radius: 10px; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; transition: transform .15s; }
.cta:hover { transform: translateY(-1px); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge { display: block; line-height: 0; transition: transform .15s; }
.badge:hover { transform: translateY(-1px); }
/* Stands beside Chrome's badge, at its size, with its square corners and two lines, but an empty plate: not there yet. */
.soon { display: flex; align-items: center; gap: 18px; height: 58px; padding-inline: 10px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-family: Asap, system-ui, sans-serif; font-size: 16px; font-weight: 450; line-height: 1.2; text-align: left; white-space: nowrap; }
.soon svg { flex: none; width: 32px; height: 32px; fill: currentColor; }
.soon small { display: block; font-size: 11px; font-weight: 400; }
.hero p { margin-top: 0; }
.hero .stores { margin-bottom: 0; }
.hero .assure { margin: 14px 0 0; color: var(--muted); font-size: 14px; font-style: italic; text-wrap: balance; }
.on-phone { display: none; }
.browsers { display: none; justify-content: center; align-items: flex-start; gap: 20px; color: var(--muted); }
.browsers a, .coming-logos > span { display: block; padding: 4px; line-height: 0; }
.browsers a { color: var(--text); }
.browsers svg { width: 40px; height: 40px; fill: currentColor; }
/* The label spans whichever logos are still to come, however many that is. */
.coming { display: grid; justify-items: center; }
.coming-logos { display: flex; gap: 20px; }
.coming small { width: 100%; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.3; text-align: center; white-space: nowrap; }
@media (hover: none) { .stores { display: none; } .browsers { display: flex; } }
/* A short laptop window: tighter, so the board shows without scrolling. */
@media (min-width: 900px) and (max-height: 800px) {
  .tile { zoom: .75; }
  .hero { padding-bottom: 48px; }
  .hero h1 { font-size: min(5.4vw, 48px); }
}

/* Live demo: tilts back in the page and flattens as it scrolls up */
.stage { position: relative; width: min(1360px, 100%); margin-inline: auto; padding-inline: 16px; }
/* The sticker sticks below the header, and only as far as the board's bottom edge. */
.board { display: flow-root; }
/* The perspective stays on its own box: on .board it would hold the sticker and the label under the page's mouse. */
.tilt { margin-top: -78px; perspective: 1600px; }
/* The sticker that hands the board over: the points go round, the words stay put. */
.try { position: sticky; z-index: 7; top: 52px; display: grid; place-items: center; width: 116px; height: 116px; margin: -38px auto 0; padding: 0; color: #202124; font: inherit; background: none; border: 0; cursor: pointer; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.try[hidden] { visibility: hidden; }
.try:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
.try svg, .try b { grid-area: 1 / 1; }
.try svg { width: 100%; height: 100%; fill: var(--try); }
.try b { position: relative; font-size: 17px; font-weight: 800; line-height: 1.05; }
.resume-key { position: absolute; left: 50%; top: 88px; z-index: 6; padding: 8px 16px; color: #202124; font: 600 15px/1.3 system-ui, sans-serif; background: var(--try); border: 0; border-radius: 8px; cursor: pointer; translate: -50% 0; }
.resume-key:not(:focus) { opacity: 0; pointer-events: none; }
.resume-key:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.frame { height: min(720px, 82vh); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent, 0 24px 72px rgba(0, 0, 0, .35); view-transition-name: demo-frame; transform-origin: 50% 100%; }
.frame iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
.frame iframe:not(.ready) { opacity: 0; }
/* In the board's place until it loads: four lanes of cards, drawn with no image and no script. */
.frame { position: relative; }
.stand-in { position: absolute; inset: 0; display: flex; gap: 1.5%; padding: 9% 1.5% 1.5%; }
.stand-in i { flex: 1; border: 1px solid var(--line); border-radius: 8px; --u: calc(var(--k, 1) * 1px); background: repeating-linear-gradient(to bottom, var(--card) 0 calc(34 * var(--u)), transparent calc(34 * var(--u)) calc(42 * var(--u))) center calc(8 * var(--u)) / calc(100% - 16 * var(--u)) 100% no-repeat; }
.board-held .caption { display: none; }
/* Locked, the whole board is the button: it glows in the sticker's color while you're on it or the sticker. */
@media (min-width: 900px) and (hover: hover) {
  .frame:has(> iframe[inert]) { cursor: pointer; transition: box-shadow .2s, border-color .2s; }
  .frame:has(> iframe[inert]):hover, .try:hover ~ .tilt .frame:has(> iframe[inert]) { border-color: var(--try); box-shadow: 0 0 0 1px var(--try), 0 0 36px 0 color-mix(in srgb, var(--try) 55%, transparent), 0 24px 72px rgba(0, 0, 0, .35); }
}
/* What the mouse is showing: just under the first lane's six Tabs, which stay in view, or at the foot of a short board.
   With the board running past the window's foot, it sits at the foot of the window. */
.say { --above: max(16px, calc(min(720px, 82vh) - 572px)); position: sticky; bottom: calc(16px - var(--above)); z-index: 6; height: 0; pointer-events: none; }
.say > div { position: absolute; left: -14px; bottom: var(--above); width: max-content; max-width: 70%; padding: 16px 28px; border-radius: 14px; background: color-mix(in srgb, var(--say) 90%, transparent); backdrop-filter: blur(8px); color: #202124; font-size: 42px; font-weight: 700; line-height: 1.15; box-shadow: 0 12px 36px rgba(0, 0, 0, .35); opacity: 0; translate: 0 8px; transition: opacity .18s, translate .18s; }
.say.on > div { opacity: 1; translate: none; }
/* Watch only (watchOnly in main.ts): the whole board, a desktop's size scaled down to fit, with nothing to click. */
@media (max-width: 899px), (hover: none) {
  .try, .resume-key, .by-hand { display: none; }
  .tilt { margin-top: 0; }
  .frame { height: auto; aspect-ratio: 1100 / 760; }
  .frame iframe { width: 1100px; height: 760px; transform-origin: 0 0; transform: scale(var(--k, .3)); }
  /* Large enough to read: it's the one thing here that needs to be, so it can cover the first lane. */
  .on-phone { display: inline; }
  .say { --above: 10px; }
  .say > div { left: 8px; max-width: calc(100% - 16px); padding: 8px 14px; border-radius: 10px; font-size: clamp(22px, 6vw, 36px); }
}
.spark { position: fixed; z-index: 6; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: var(--try); pointer-events: none; }
.under-board { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.caption { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
#tourPause { flex: none; min-width: 136px; height: 32px; padding: 0 12px 0 8px; color: var(--text); font: inherit; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
#tourPause[hidden], #tourPause .to-play, :is(.tour-paused, .board-yours) #tourPause .to-pause { display: none; }
:is(.tour-paused, .board-yours) #tourPause .to-play, #tourPause .to-pause { display: flex; align-items: center; justify-content: center; gap: 4px; }
#tourPause:hover, .stage:has(~ #mouse.resting:hover) #tourPause { background: var(--card-h); }
#tourPause svg { width: 20px; height: 20px; fill: currentColor; }

/* Features */
.features { --rows: clamp(64px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--rows) 40px; width: min(1040px, 100%); margin: clamp(112px, 13vw, 184px) auto 0; padding-inline: 16px; }
.features-head { grid-column: 1 / -1; margin-bottom: calc(48px - var(--rows)); text-align: center; }
.features-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.features-head p { margin: 6px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); font-style: italic; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 3vw, 30px); margin: 20px 0 8px; }
/* A little dim until you're on the panel, where it can be used. */
@media (hover: hover) {
  .feature h3 { color: color-mix(in srgb, var(--text) 82%, transparent); transition: color .35s ease-out; }
  .feature:is(:hover, :focus-within) h3 { color: var(--text); }
}
.feature h3 svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.feature { display: flex; flex-direction: column; }
.feature .demo { order: -1; }
.feature p { margin: 0; color: var(--muted); text-wrap: balance; }

/* Feature demos, drawn with the app's own tokens: a toolbar over a scene, whose state is the scene's data-opt */
.demo { position: relative; display: flex; flex-direction: column; height: 277px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.opts { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.chip { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; background: none; border: 0; border-radius: 7px; cursor: pointer; }
.chip.on { color: var(--text); background: var(--card-h); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) { .chip:hover { color: var(--text); background: var(--card-h); } }
.chip.mode[data-opt="light"] { margin-left: auto; }
.chip svg { flex: none; display: block; width: 20px; height: 20px; }
/* The sort card's options, stacked like the app's sort menu, beside the Tabs they sort. */
.demo:has(> .opts.menu) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.opts.menu { order: 1; flex-direction: column; border-bottom: 0; border-left: 1px solid var(--line); }
.menu .chip { width: 100%; }
.menu .chip[data-opt="chrome"] { position: relative; margin-top: auto; }
.menu .chip[data-opt="chrome"]::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; border-top: 1px solid var(--line); }
.i-out { display: none; }
/* Narrow cards keep the icons and name only the chosen option. */
@media (max-width: 359px) { .opts:not(.menu) .chip:not(.on) { padding-right: 6px; } .opts:not(.menu) .chip:not(.on) > span { display: none; } }

.mini { position: relative; flex: 1; min-height: 0; overflow: hidden; font-size: 13px; }
.mini b { position: absolute; display: block; background: var(--bg); border-radius: 8px; }
.row { position: absolute; left: 12px; right: 12px; height: 36px; display: flex; align-items: center; gap: 8px; padding-inline: 10px; background: var(--card); border-radius: 7px; white-space: nowrap; overflow: hidden; }
.row i { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); opacity: .75; }
.row span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.row em, .row small { flex: none; font-style: normal; font-size: 11px; color: var(--muted); }
.row em { padding: 1px 7px; border-radius: 9px; color: color-mix(in srgb, var(--muted) 70%, var(--text)); background: var(--card-h); }
.row em.dupe { color: color-mix(in srgb, var(--danger) 80%, var(--text)); }

/* Drag & Drop: a tiny working board (drag-card.ts). What's moving dims where it is while a copy follows the pointer, as in
   the app: the first item in front, the rest fanned out behind it, and a count of the Tabs. A Group travels as its header.
   A vertical swipe on a phone still scrolls the page; a sideways one drags. */
.mini.drag { display: flex; gap: 8px; padding: 10px; font-size: 12.5px; touch-action: pan-y; user-select: none; }
.dl-lane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--bg); border-radius: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; touch-action: pan-y; }
.dl-tab { flex: none; display: flex; align-items: center; gap: 8px; height: 28px; padding-inline: 8px; background: var(--card); border-radius: 6px; white-space: nowrap; overflow: hidden; cursor: grab; }
.dl-tab i { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); opacity: .75; }
.dl-tab span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
/* A Group, as in the app: the colored edge is exactly as wide as the corner radius, so its inner side runs straight top to bottom. */
.dl-group { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 6px 12px; background: linear-gradient(to right, var(--g) 0 6px, transparent 6px), color-mix(in srgb, var(--g) 10%, transparent); border-radius: 6px; }
.dl-head { flex: none; display: flex; align-items: center; gap: 4px; height: 22px; cursor: grab; }
.dl-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dl-head .fold { flex: none; width: 20px; height: 20px; margin-left: -2px; fill: var(--muted); }
.dl-head .count { flex: none; min-inline-size: 18px; padding-inline: 6px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; background: color-mix(in srgb, var(--g) 28%, transparent); }
.dl-tab.sel, .dl-group.sel { box-shadow: 0 0 0 2px var(--sel); }
.moving { opacity: .35; }
.dl-bar { position: absolute; z-index: 3; height: 2px; border-radius: 1px; background: var(--sel); text-decoration: none; pointer-events: none; }
.dl-ghost { position: absolute; z-index: 4; width: 42%; height: 28px; opacity: .85; pointer-events: none; }
.dl-ghost > * { position: absolute; inset: 0 0 auto; box-shadow: 0 0 0 2px var(--sel); }
.dl-ghost .dl-head { height: 28px; padding: 0 8px 0 12px; background: linear-gradient(to right, var(--g) 0 6px, transparent 6px), color-mix(in srgb, var(--g) 10%, var(--panel)); border-radius: 6px; }
.dl-ghost .fan { transform-origin: calc(100% - 18px) 50%; }
.dl-ghost .f1 { rotate: 6deg; }
.dl-ghost .f2 { rotate: 12deg; }
.dl-ghost b { inset: 0 auto auto 100%; translate: -50% -50%; min-width: 20px; padding: 1px 6px; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 600; background: var(--sel); color: var(--panel); box-shadow: none; }

/* Find duplicates: tagged, then the extras selected, then closed */
.dupes .row { height: 32px; }
.dupes .d1 { top: 10px; } .dupes .d2 { top: 46px; } .dupes .d3 { top: 82px; } .dupes .d4 { top: 118px; } .dupes .d5 { top: 154px; } .dupes .d6 { top: 190px; }
[data-opt="select"] :is(.d3, .d5, .d6) { box-shadow: 0 0 0 2px var(--accent) inset; }
[data-opt="close"] :is(.d3, .d5, .d6) { opacity: 0; scale: .96; }
[data-opt="close"] .d4 { translate: 0 -36px; }
[data-opt="close"] .row em { opacity: 0; }

/* Sort: every row knows its place in each order, and its height in the stack: what lands first travels on top, set as the move starts. The Group carries its own Tabs. */
.sorting .row { top: 0; left: 8px; right: 8px; }
.sorting .row.in { left: 12px; right: 4px; height: 30px; }
.sgroup { position: absolute; top: 0; left: 8px; right: 8px; height: 134px; padding: 4px 4px 0 12px; background: linear-gradient(to right, var(--g) 0 6px, transparent 6px), color-mix(in srgb, var(--g) 10%, var(--panel)); border-radius: 6px; }
.sgroup .dl-head { cursor: default; }
[data-opt="viewed"] :is(.row, .sgroup) { translate: 0 var(--viewed); z-index: var(--z-viewed); }
[data-opt="created"] :is(.row, .sgroup) { translate: 0 var(--created); z-index: var(--z-created); }
[data-opt="title"] :is(.row, .sgroup) { translate: 0 var(--title); z-index: var(--z-title); }
[data-opt="site"] :is(.row, .sgroup) { translate: 0 var(--site); z-index: var(--z-site); }
[data-opt="chrome"] :is(.row, .sgroup) { translate: 0 var(--chrome); z-index: var(--z-chrome); }
.sorting .row span { flex: 1 1 50%; }
.sorting small { display: none; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-opt="viewed"] small.for-viewed, [data-opt="created"] small.for-created, [data-opt="site"] small.for-site { display: block; }

/* Layout: lanes pack down into flow */
.layouts b { overflow: hidden; padding-top: 4px; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.layouts[data-opt="flow"] b { left: var(--x2); top: var(--y2); width: var(--w2); height: var(--h2); }
.layouts b i { display: block; height: 16px; margin: 6px 6px 0; background: var(--card); border-radius: 4px; }
/* The old theme, laid over the new one while the lanes turn, and wiped away left to right through a soft edge. */
.was { position: absolute; top: 0; left: 0; right: 0; background: var(--panel); pointer-events: none; mask: linear-gradient(90deg, transparent, #000 20%) no-repeat; mask-size: 125% 100%; }
div.was:not(.opts) { bottom: 0; }

.doot { stroke: #f9ab00; stroke-width: 3.5; stroke-linecap: round; opacity: 0; }

/* The tour's mouse, about three times life size: white outlined in black, or the reverse on a Mac as Macs draw it.
   It lives in main, so it can travel from the live board down to the features. */
#mouse { display: none; position: absolute; left: 0; top: 0; z-index: 5; width: 42px; height: 60px; margin: -3px 0 0 -3px; pointer-events: none; opacity: 0; transform-origin: 3px 3px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
#mouse svg { display: block; width: 100%; height: 100%; overflow: visible; }
#mouse path { fill: #fff; stroke: #000; stroke-width: .9; stroke-linejoin: round; }
#mouse.mac path { fill: #000; stroke: #fff; }
/* Over a lane's empty space it's the board's hand, centered where the tip was. */
#mouse .open, #mouse .closed { display: none; position: absolute; left: -30px; top: -30px; width: 66px; height: 66px; }
#mouse.hand .arrow { display: none; }
#mouse.hand:not(.grabbing) .open, #mouse.hand.grabbing .closed { display: block; }
/* The mouse naps while the board is yours. */
#mouse .zzz { display: none; position: absolute; left: 34px; top: -6px; color: var(--text); font-weight: 800; line-height: 1; }
#mouse.resting .zzz { display: block; }
#mouse.resting { pointer-events: auto; cursor: pointer; }
#mouse.resting:hover .zzz, .stage:has(#tourPause:is(:hover, :focus-visible)) ~ #mouse.resting .zzz { display: none; }
.zzz span { position: absolute; left: 0; top: 0; opacity: 0; animation: snooze 2.7s ease-out infinite .5s; }
.zzz span:nth-child(1) { font-size: 15px; }
.zzz span:nth-child(2) { font-size: 20px; animation-delay: 1.4s; }
.zzz span:nth-child(3) { font-size: 26px; animation-delay: 2.3s; }
@keyframes snooze { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; translate: 22px -38px; } }
#mouse i { position: absolute; left: 3px; top: 3px; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; }
@media (max-width: 520px) { #mouse { width: 28px; height: 40px; margin: -2px 0 0 -2px; transform-origin: 2px 2px; } #mouse i { left: 2px; top: 2px; } #mouse .open, #mouse .closed { left: -20px; top: -20px; width: 44px; height: 44px; } }

/* Prose pages */
.prose { width: min(680px, 100%); margin-inline: auto; padding: 32px 16px 0; }
.prose h1 { font-size: clamp(36px, 6vw, 52px); margin-bottom: 12px; }
.prose h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -.01em; scroll-margin-top: 64px; }
.prose p { margin: 0 0 12px; }
.prose .meta { color: var(--muted); font-size: 14px; }
.matrix { margin: 12px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.matrix table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.matrix th, .matrix td { padding: 8px 12px; text-align: left; vertical-align: top; }
.matrix thead th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.matrix tbody tr { border-top: 1px solid var(--line); }
/* On the home page, under the features. A keyboard list is no use on a touch screen. */
.home-shortcuts { width: min(912px, 100%); margin: clamp(64px, 7vw, 96px) auto 0; padding-inline: 16px; }
.home-shortcuts .section-head { margin-top: 0; margin-bottom: 16px; }
.home-shortcuts h2 { font-size: clamp(32px, 4.4vw, 48px); }
.home-shortcuts > p { margin: 12px 0 0; color: var(--muted); }
@media (hover: none) { .home-shortcuts { display: none; } }
#shortcuts { scroll-margin-top: 72px; }
.prose.wide { width: min(880px, 100%); }
.prose.wide > p:not(.your-browser) { max-width: 680px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 36px 0 8px; }
.section-head h2 { margin: 0; }
.os-choice { display: none; gap: 2px; padding: 3px; background: var(--track); border-radius: 10px; box-shadow: inset 0 1px 2px var(--key-shadow); }
.js .os-choice { display: inline-flex; }
.os-choice button { display: flex; align-items: center; gap: 6px; padding: 3px 8px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 7px; cursor: pointer; transition: color .15s ease-out; }
.os-choice button:hover { color: var(--text); }
.os-choice button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.os-choice button[aria-pressed="true"] { color: var(--text); background: linear-gradient(145deg, var(--key-top), var(--key-bottom)) padding-box, linear-gradient(135deg, var(--key-hi), var(--key-lo)) border-box; box-shadow: 0 1px 0 var(--key-side), 0 2px 4px var(--key-shadow); }
.os-choice svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.inline-icon { vertical-align: -4px; border-radius: 4px; }
.inline-svg svg { width: 20px; height: 20px; vertical-align: -4px; fill: currentColor; }
/* Keys come in two widths, one letter or icon and one word, so a column of them lines up. Their own color sets them off the panel. */
.key-lines { display: grid; gap: 5px; }
.keys { display: flex; align-items: center; gap: 4px; }
.key-icon { display: grid; place-items: center; width: 28px; height: 26px; margin-bottom: 1px; }
.key-icon img { display: block; border-radius: 5px; }
.key-icon svg { width: 22px; height: 22px; fill: currentColor; }
.only-pc, .only-mac { display: contents; }
:root[data-os="mac"] .only-pc, :root:not([data-os="mac"]) .only-mac { display: none; }
kbd.key { display: inline-grid; place-items: center; box-sizing: border-box; width: 28px; height: 26px; padding: 0; font: 12px/1 system-ui, sans-serif; margin-bottom: 1px; border: 1px solid transparent; background: linear-gradient(145deg, var(--key-top), var(--key-bottom)) padding-box, linear-gradient(135deg, var(--key-hi), var(--key-lo)) border-box; box-shadow: 0 1px 0 var(--key-side), 0 2px 3px var(--key-shadow); }
kbd.key.word { width: 66px; }
kbd.key svg { width: 16px; height: 16px; fill: currentColor; }
.turn-down svg { rotate: 180deg; }
.turn-left svg { rotate: -90deg; }
.turn-right svg { rotate: 90deg; }
.key-sep { width: 10px; margin-bottom: 1px; color: var(--muted); text-align: center; }
.key-table { table-layout: fixed; }
.key-table td { vertical-align: middle; }
.key-table td:first-child { width: 260px; }
.key-table tbody tr:first-child { border-top: 0; }
.more-keys { margin: 12px 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.more-keys summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 15px; list-style: none; cursor: pointer; transition: background-color .2s ease-out; }
.more-keys summary::-webkit-details-marker { display: none; }
.more-keys summary:hover { background: var(--card-h); }
.more-keys summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.more-keys summary small { margin-left: auto; color: var(--muted); font-size: 13px; }
.more-chevron { display: grid; color: var(--muted); rotate: -90deg; transition: rotate .2s ease-out; }
.more-chevron svg { width: 18px; height: 18px; fill: currentColor; }
.more-keys[open] .more-chevron { rotate: 0deg; }
.key-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
.key-column { display: grid; align-content: start; gap: 12px; }
.key-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.key-card h3 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.key-card h3 svg { width: 18px; height: 18px; fill: var(--muted); }
.key-card .matrix { margin: 0; overflow: visible; background: none; border: 0; border-radius: 0; }

.key-card .key-table td:first-child { width: 252px; }
@media (prefers-reduced-motion: no-preference) {
  .more-keys { interpolate-size: allow-keywords; }
  .more-keys::details-content { height: 0; overflow: clip; opacity: 0; transition: height .25s ease-out, opacity .25s ease-out, content-visibility .25s allow-discrete; }
  .more-keys[open]::details-content { height: auto; opacity: 1; }
}
@media (max-width: 760px) { .key-cards { grid-template-columns: minmax(0, 1fr); } .more-keys summary small { display: none; } }
@media (max-width: 600px) {
  .key-table, .key-table tbody, .key-table tr { display: block; }
  .key-table td, .key-table td:first-child, .key-card .key-table td:first-child { display: block; width: auto; }
  .key-table td:first-child { padding-bottom: 0; }
}
.matrix th { font-weight: 400; }
.browser-table td, .browser-table th, .matrix tbody th, .matrix tbody td { vertical-align: middle; }
a.browser-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
a.browser-name:hover { text-decoration: underline; }
.browser-logo { display: block; flex: none; }
.under-chrome a.browser-name { margin-left: 24px; }
.browser-logos { display: flex; flex-wrap: wrap; gap: 6px; }
/* One blue in both themes: the dark theme's accent is too pale to hold white text. */
.your-browser { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; color: var(--cta-text); background: var(--cta); border-radius: 8px; }
.your-browser > span { flex: 1 1 180px; }
.your-browser .badge:focus-visible { outline: 2px solid var(--cta-text); outline-offset: 2px; }
.your-browser .browser-logo { box-sizing: content-box; padding: 2px; background: var(--cta-text); border-radius: 50%; }
.your-browser[hidden] { display: none; }
.browser-table tr.yours { background: var(--accent-soft); }
.perms { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.perms code { display: block; width: fit-content; margin-bottom: 2px; }
.perms strong { display: block; font-weight: 600; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.reasons button { padding: 10px 16px; color: var(--text); font: inherit; font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.reasons button:hover:not(:disabled) { background: var(--card-h); }
.reasons button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reasons button:disabled { color: var(--muted); cursor: default; }
.reasons button.picked { color: var(--text); border-color: var(--accent); }
#thanks:empty { display: none; }
kbd, code { font: 14px ui-monospace, Consolas, monospace; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }

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

/* 404: the closed Tab's ghost */
.lost { --roam: min(120px, 16vw); padding: 48px 16px 0; text-align: center; overflow-x: clip; }
.lost h1 { margin: 72px 0 4px; font-size: clamp(64px, 14vw, 112px); line-height: 1; }
.lost p { margin: 0 0 24px; color: var(--muted); font-size: 19px; }
.haunt { position: relative; z-index: 1; display: flex; gap: 10px; width: min(280px, 100%); margin-inline: auto; padding: 12px 14px; text-align: left; font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 32px rgba(0, 0, 0, .25); opacity: .92; rotate: -4deg; }
.haunt b { font-size: 22px; font-weight: 400; line-height: 1.5; }
.haunt span { min-width: 0; }
.haunt small { display: block; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Drifts about, bobbing and swaying as it goes, then winds up and looms: boo. */
  .haunt { animation: haunt-roam 11s ease-in-out infinite, haunt-bob .9s ease-in-out infinite alternate, haunt-sway 1.7s ease-in-out infinite alternate; }
  @keyframes haunt-roam {
    0%, 72%, 100% { translate: 0 0; scale: 1; }
    16% { translate: calc(var(--roam) * -1) 16px; }
    32% { translate: calc(var(--roam) * -.3) -16px; }
    48% { translate: var(--roam) 20px; }
    62% { translate: calc(var(--roam) * .5) -12px; }
    77% { translate: 0 20px; scale: 1.06 .9; }
    82% { translate: 0 -10px; scale: 1.22; }
    90% { translate: 0 -4px; scale: 1.18; }
  }
  @keyframes haunt-bob { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
  @keyframes haunt-sway { from { rotate: -8deg; } to { rotate: 8deg; } }
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }

  /* The demo comes up once, as the horn toots. */
  .herald { animation: herald .9s cubic-bezier(.2, .7, .2, 1) 1.66s backwards; }
  @keyframes herald { from { opacity: 0; translate: 0 80px; } }

  /* The logo: the banners roll down from a level horn, it tilts up to toot twice, then levels out as they swing. */
  .tile { animation: pop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes pop { from { opacity: 0; transform: scale(.8); } }
  .bard { transform-box: view-box; transform-origin: 78px 16px; animation: blow 3.2s linear both; }
  @keyframes blow {
    0% { opacity: 0; transform: translateX(-4px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
    10% { opacity: 1; transform: none; }
    36% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .2, 1.2); }
    46%, 52% { transform: rotate(15deg); animation-timing-function: ease-out; }
    55% { transform: rotate(13deg); animation-timing-function: ease-in-out; }
    60% { transform: rotate(15deg); animation-timing-function: ease-out; }
    63% { transform: rotate(13deg); animation-timing-function: ease-in-out; }
    68%, 74% { transform: rotate(15deg); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
    90% { transform: rotate(-1.5deg); animation-timing-function: ease-in-out; }
    100% { opacity: 1; transform: none; }
  }
  .doot { transform-box: view-box; transform-origin: 0 16px; animation: doot 3.2s ease-out both; }
  @keyframes doot {
    0%, 52% { opacity: 0; transform: scale(.7); }
    54% { opacity: 1; transform: scale(.8); }
    59% { opacity: 0; transform: scale(1.2); }
    60% { opacity: 0; transform: scale(.7); }
    62% { opacity: 1; transform: scale(.85); }
    71%, 100% { opacity: 0; transform: scale(1.35); }
  }
  /* The banners hang straight down, so they turn against the horn while it tilts and swing when it levels. */
  .tile path:nth-of-type(-n+3) { transform-box: fill-box; transform-origin: 50% 0; animation: unfurl 3.2s linear both; }
  .tile path:nth-of-type(2) { animation-delay: .08s; }
  .tile path:nth-of-type(3) { animation-delay: .16s; }
  @keyframes unfurl {
    0%, 8% { transform: scaleY(0); animation-timing-function: cubic-bezier(.2, .9, .3, 1.1); }
    30%, 36% { transform: scaleY(1); animation-timing-function: cubic-bezier(.3, 0, .2, 1.2); }
    46% { transform: rotate(-15deg) scaleY(1); }
    76% { transform: rotate(-15deg) scaleY(1); animation-timing-function: ease-in-out; }
    88% { transform: rotate(6deg) scaleY(1); animation-timing-function: ease-in-out; }
    95% { transform: rotate(-2.5deg) scaleY(1); animation-timing-function: ease-in-out; }
    100% { transform: none; }
  }

  @supports (animation-timeline: view()) {
    @media (min-width: 900px) and (hover: hover) { .frame { animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; } }
    @keyframes flatten { from { transform: rotateX(16deg) scale(.96); } }
  }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }

  .home .brand, .home .top { transition: opacity .25s, transform .25s, visibility .25s, background-color .25s, box-shadow .25s; }

  /* The tour: scene states ease from one to the next, and the mouse only exists with motion */
  .js #mouse { display: block; transition: opacity .3s, scale .12s; }
  .dupes .row, .dupes .row em { transition: opacity .45s, scale .45s, translate .6s cubic-bezier(.5, 0, .2, 1), box-shadow .3s; }
  .sorting :is(.row, .sgroup) { transition: translate .75s cubic-bezier(.5, 0, .2, 1); }
  .layouts b { transition: left .8s cubic-bezier(.5, 0, .2, 1), top .8s cubic-bezier(.5, 0, .2, 1), width .8s cubic-bezier(.5, 0, .2, 1), height .8s cubic-bezier(.5, 0, .2, 1); }
  .chip { transition: background-color .4s, color .25s; }
  .swapping .chip { transition: none; }
  /* Hovered, the napping mouse wakes like a dog: a shake, then a couple of hops. Only the arrow moves, so the target holds still. */
  #mouse.resting:hover .arrow, .stage:has(:is(.resume-key:focus-visible, #tourPause:hover, #tourPause:focus-visible)) ~ #mouse.resting .arrow { animation: wake 1.4s ease-in-out infinite; transform-origin: 30% 60%; }
  @keyframes wake {
    0%, 34%, 100% { translate: 0 0; rotate: 0deg; }
    5% { rotate: -11deg; } 10% { rotate: 10deg; } 15% { rotate: -9deg; } 20% { rotate: 8deg; } 25% { rotate: -5deg; } 30% { rotate: 3deg; }
    46% { translate: 0 -16px; rotate: -4deg; } 58% { translate: 0 0; rotate: 0deg; }
    70% { translate: 0 -10px; rotate: 4deg; } 82% { translate: 0 0; rotate: 0deg; }
  }
  .try { transition: scale .15s; }
  .try:hover { scale: 1.1; }
  .try:active { scale: .94; }
  .try svg { animation: orbit 16s linear infinite; }
  @keyframes orbit { to { rotate: 360deg; } }

  /* The theme switch: the new theme is revealed left to right through a soft edge, as in the app */
  ::view-transition-old(root) { animation: none; z-index: 0; }
  ::view-transition-new(root) {
    z-index: 1; animation: sweep .62s cubic-bezier(.32, 0, .67, 0) both;
    mask-image: linear-gradient(90deg, #000 0 80%, transparent 100%); mask-size: 125% 100%; mask-repeat: no-repeat;
  }
  @keyframes sweep { from { mask-position: -125vw 0; } to { mask-position: 0 0; } }
  /* The live demo stays live on top, so its own lanes can turn. */
  ::view-transition-group(demo-frame) { z-index: 2; animation: none; }
  ::view-transition-old(demo-frame) { display: none; }
  ::view-transition-new(demo-frame) { animation: none; }
  /* The badge, the mouse and its words stay on top of it, as they do the rest of the time. */
  .try { view-transition-name: try-badge; }
  .say > div { view-transition-name: demo-say; }
  #mouse { view-transition-name: tour-mouse; }
  ::view-transition-group(tour-mouse) { z-index: 5; animation: none; }
  ::view-transition-old(tour-mouse) { display: none; }
  ::view-transition-new(tour-mouse) { animation: none; }
  ::view-transition-group(try-badge) { z-index: 7; animation: none; }
  ::view-transition-group(demo-say) { z-index: 6; animation: none; }
  ::view-transition-old(demo-say) { display: none; }
  ::view-transition-new(demo-say) { animation: none; }
  ::view-transition-old(try-badge) { display: none; }
  ::view-transition-new(try-badge) { animation: none; }
}
