/* Doubles website: every page's styles (the pages carry no inline styles).
   One look, the Mac app's, as the design "Doubles Home v2" and the owner's
   page designs after it have it: a light grey-white canvas (#0E0E10 in
   dark mode), white cards and glass, hairlines, soft shadows, capsule
   buttons, and the system's fonts (SF Pro and SF Mono on a Mac: like the
   app, the site brings none of its own). Every page has the same
   navigation and footer; every page but the home has a band at its top
   (Pages); the home page's own sections are all under body.home (Home).
   Greys are the designs', or darker where they'd read at under 4.5:1 on
   what's behind them. */

/* ---- Tokens ---------------------------------------------------------- */

:root {
  color-scheme: light;
  /* The page, and the theme colour (site.js, layout). */
  --canvas: #F2F2F0;
  --card: #FFFFFF;
  /* Sunken boxes inside cards: a window's title bar, a terminal. */
  --well: #F5F5F4;
  --text: #1D1D1F;
  /* Links in the navigation, notes, table cells, the words of a page's
     column, field labels, tags. */
  --text-2: #3A3A3C;
  /* Leads. */
  --text-lead: #4C4C51;
  /* Secondary words and small print. */
  --text-mute: #5E5E63;
  /* Mono details: versions, sizes. */
  --text-small: #55555A;
  /* A heading's grey second half, on the page, a terminal's prompt: a
     shade darker than the design's #6E6E73, which is 4.52:1 on the canvas
     and 4.4:1 where a demo's shadow reaches the heading under it (this is
     4.6:1 there) ... */
  --text-dim: #6A6A6F;
  /* ... and on the gradients (the home page's hero and call to action, and
     every other page's band), where the design's #66666C is 3.9:1 at their
     darkest. */
  --text-dim-deep: #535358;
  --hairline: rgba(0, 0, 0, .08);
  --edge: rgba(0, 0, 0, .14);
  /* A text field's edge, at 3:1 or more on the field and the canvas (the
     app's controlOutline). */
  --control-edge: rgba(0, 0, 0, .48);
  --glass: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .95);
  --shine: rgba(255, 255, 255, .9);
  --hover: rgba(0, 0, 0, .06);
  --fill: rgba(0, 0, 0, .08);
  --fill-soft: rgba(0, 0, 0, .05);
  --fill-strong: rgba(0, 0, 0, .12);
  /* A note's box (the owner's "Limit" notes). */
  --note-fill: rgba(0, 0, 0, .04);
  --note-edge: rgba(0, 0, 0, .06);
  --tip: #1D1D1F;
  --tip-text: #FFFFFF;
  --link-line: rgba(0, 0, 0, .3);
  --selection: rgba(0, 0, 0, .14);
  --danger-text: #A00909;
  --danger-fill: rgba(229, 72, 77, .12);
  --danger-edge: rgba(229, 72, 77, .3);
  --danger-edge-strong: rgba(229, 72, 77, .55);
  --danger-dot: #E5484D;
  --key-face: linear-gradient(#FFFFFF, #F4F4F3);
  --key-edge: rgba(0, 0, 0, .12);
  --key-shine: #FFFFFF;
  --key-drop: rgba(0, 0, 0, .08);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, .04);
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  /* The room the rail takes at the window's left edge wider than 900 px
     (Navigation): its 56 px, and 14 on either side. The rail floats over
     the page, its gradients running on under it to the window's edges: the
     page's words start this much further in than the gutter (Pages, Home,
     Footer). */
  --rail-room: 84px;
  --ease: cubic-bezier(.45, 0, .25, 1);
  /* A page's column; the grid of a long page with its contents beside it;
     a form. */
  --w-text: 800px;
  --w-wide: 1080px;
  --w-form: 440px;
  /* How far down a page's heading starts: below the top-right buttons, or
     the bar where there is one (Navigation: 72 px down to 900 px wide,
     about 114 to 820 and 152 to 374). */
  --page-top: clamp(112px, 12vw, 150px);
}

@media not all {
  :root {
    --canvas: #0E0E10;
    --card: #1C1C1E;
    --well: #2C2C2E;
    --text: #FFFFFF;
    --text-2: #D1D1D6;
    --text-lead: #C7C7CC;
    --text-mute: #A1A1A6;
    --text-small: #A1A1A6;
    /* 4.6:1 on a terminal's #2C2C2E, where #8E8E93 is 4.27:1. */
    --text-dim: #949499;
    --text-dim-deep: #98989D;
    --hairline: rgba(255, 255, 255, .1);
    --edge: rgba(255, 255, 255, .16);
    --control-edge: rgba(255, 255, 255, .44);
    --glass: rgba(28, 28, 30, .72);
    --glass-edge: rgba(255, 255, 255, .12);
    --shine: rgba(255, 255, 255, .08);
    --hover: rgba(255, 255, 255, .08);
    --fill: rgba(255, 255, 255, .12);
    --fill-soft: rgba(255, 255, 255, .08);
    --fill-strong: rgba(255, 255, 255, .16);
    --note-fill: rgba(255, 255, 255, .06);
    --note-edge: rgba(255, 255, 255, .08);
    --tip: #3A3A3C;
    --tip-text: #FFFFFF;
    --link-line: rgba(255, 255, 255, .35);
    --selection: rgba(255, 255, 255, .22);
    --danger-text: #FFB2B3;
    --danger-fill: rgba(229, 72, 77, .24);
    --danger-edge: rgba(229, 72, 77, .4);
    --danger-edge-strong: rgba(229, 72, 77, .65);
    --danger-dot: #FF6B70;
    --key-face: linear-gradient(#3A3A3C, #2C2C2E);
    --key-edge: rgba(255, 255, 255, .12);
    --key-shine: rgba(255, 255, 255, .08);
    --key-drop: rgba(0, 0, 0, .4);
    --card-shadow: none;
  }
}
/* 900 px and narrower there's no rail, but a bar over the top of the page
   (Navigation). */
@media (max-width: 900px) {
  :root { --rail-room: 0px; }
}
@media (max-width: 820px) {
  :root { --page-top: 144px; }
}
@media (max-width: 374px) {
  :root { --page-top: 184px; }
}

/* Where the download buttons' rotating ring starts. */
@property --ring {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ---- Base ------------------------------------------------------------ */

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

/* No ligatures anywhere, as the approved home page has it: !important,
   since every `font` shorthand below would otherwise turn them back on for
   its element. */
*, *::before, *::after { font-variant-ligatures: none !important; }

html, body {
  margin: 0;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

/* Whatever the browser scrolls to, a link's target or the next thing to get
   keyboard focus, stops below the top-right buttons, or the bar where there
   is one (Navigation). */
html { scroll-padding-top: 88px; }

/* A short page still ends with the footer at the bottom of the window. The
   page has the window's whole width, its gradients and the footer's
   hairline edge to edge: the rail floats over it (Navigation), and each
   part keeps its words clear of the rail (--rail-room). */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.55 var(--font-sans);
}

/* The roaming pointers may reach past the right edge on a phone. */
main {
  flex: 1 0 auto;
  overflow-x: hidden;
  overflow-x: clip;
}

b, strong { font-weight: 600; }

a { color: var(--text); text-decoration: none; }

::selection { background: var(--selection); color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
/* Tabbing scrolls what gets focus into view with its outline, not only up
   to its edge: up and down the page, and sideways in a table that scrolls
   (Comparisons). */
a, button, input, summary { scroll-margin: 8px; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  font: 500 13px var(--font-sans);
  background: var(--text);
  color: var(--canvas);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus { top: 12px; color: var(--canvas); }

/* The wrapper Umami counts a download button's clicks by (site.js,
   trackedDownload): it adds nothing to the layout. */
.tracked { display: contents; }

/* Glass: the rail, and the Appearance toggle and "Sign in" beside the
   download button, over whatever is behind them (the bar's is in
   Navigation). */
:is(.site-rail, .site-signin, .site-theme) {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-edge);
}

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

/* The design's Liquid Glass buttons: the download buttons have a ring that
   turns (.btn--ring; Motion has how long it turns for). A form's buttons
   look as links do: the class sets the font, edge and fill itself. */
.btn {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--text);
  font: 600 15.5px/1.55 var(--font-sans);
  text-align: center;
  padding: 13px 22px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgba(0, 0, 0, .05), 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .08),
    0 8px 24px rgba(0, 0, 0, .1);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover {
  color: #000000;
  background: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, .72));
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgba(0, 0, 0, .05), 0 0 0 .5px rgba(0, 0, 0, .14), 0 2px 4px rgba(0, 0, 0, .08),
    0 12px 32px rgba(0, 0, 0, .14);
}
.btn:active { transform: scale(.98); }
.btn--ring { padding-inline: 24px; }
/* Small: 38 px tall, on whole pixels, as "Sign in" and the Appearance
   toggle beside it in the navigation are (40 on a phone: Phones and
   touch). */
.btn--sm { font-size: 13.5px; line-height: 20px; padding: 8px 16px; }
.btn--ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ring), rgba(142, 142, 147, 0) 0 50%, #AEAEB2 68%, #1D1D1F 88%, rgba(142, 142, 147, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring 3.2s linear infinite;
  pointer-events: none;
}
/* Secondary: the Mac app's, a faint fill and edge, no glass, for a form's
   or a list's quieter buttons on the canvas. On a band's gradient every
   button is glass, as the owner's designs draw them. */
.btn--secondary {
  font-weight: 500;
  background: var(--fill-soft);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--edge);
  box-shadow: none;
}
.btn--secondary:hover { color: var(--text); background: var(--fill); box-shadow: none; }
.btn--secondary:active { background: var(--fill-strong); }
/* Destructive: red words on a red tint, as the app's Leave. */
.btn--danger {
  color: var(--danger-text);
  background: var(--danger-fill);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--danger-edge);
  box-shadow: none;
}
.btn--danger:hover { color: var(--danger-text); background: var(--danger-fill); border-color: var(--danger-edge-strong); box-shadow: none; }
@media not all {
  .btn {
    color: #FFFFFF;
    background: linear-gradient(180deg, rgba(74, 74, 79, .9), rgba(44, 44, 48, .62));
    border-color: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .5),
      0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
  .btn:hover {
    color: #FFFFFF;
    background: linear-gradient(180deg, rgba(92, 92, 98, .95), rgba(56, 56, 60, .7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .5),
      0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .45);
  }
  .btn--ring::before {
    background: conic-gradient(from var(--ring), rgba(142, 142, 147, 0) 0 50%, #636366 68%, #FFFFFF 88%, rgba(142, 142, 147, 0) 100%);
  }
  .btn--secondary, .btn--secondary:hover { color: var(--text); background: var(--fill-soft); border-color: var(--edge); box-shadow: none; }
  .btn--secondary:hover { background: var(--fill); }
  .btn--secondary:active { background: var(--fill-strong); }
  .btn--danger, .btn--danger:hover { color: var(--danger-text); background: var(--danger-fill); border-color: var(--danger-edge); box-shadow: none; }
  .btn--danger:hover { border-color: var(--danger-edge-strong); }
}
/* In a page's words a button's label may wrap ("Sign in as" a long
   address); in the navigation and on the home page it stays on one line. */
.page .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }

/* ---- Navigation ------------------------------------------------------ */

/* Every page's (site.js, siteHeader). Wider than 900 px: the rail at the
   left edge, and "Sign in" and the download button at the top right, both
   fixed, floating over the page as glass. The page's gradients run on under
   them to the window's edges, and its words start clear of the rail
   (--rail-room, Tokens). The header itself takes no room. */
.site-header { position: relative; z-index: 50; height: 0; }
.site-rail {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 50;
  width: 56px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 28px;
  /* The shadow of the buttons at the top right (.site-signin, .site-theme),
     with their fill, blur and edge (Base): glass as they are, over the
     gradients that run on under it. */
  box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px rgba(0, 0, 0, .08);
}
.site-brand {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
}
/* The logo: the Mac app's two discs, with a soft shadow under them. */
.site-logo { display: block; flex: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .12)); }
/* The name is the logo's link's words: shown in the bar, for screen readers alone in the rail. */
.site-brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.site-links { display: flex; flex-direction: column; gap: 6px; }
.site-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
/* The page's own section (aria-current), as under the pointer. */
.site-link:hover, .site-link:focus-visible, .site-link[aria-current] { background: var(--fill); color: var(--text); }
.site-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A link's name, as a tooltip beside the rail on hover and keyboard focus.
   Shown, it can be pointed at without going away (it's in the link, and a
   strip of it bridges the gap to the rail: WCAG 1.4.13); hidden, it takes
   no clicks from what's under it. */
.site-label {
  position: absolute;
  left: 54px;
  top: 50%;
  transform: translate(-4px, -50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tip);
  color: var(--tip-text);
  transition: opacity .15s ease, transform .15s ease;
}
.site-label::before { content: ""; position: absolute; inset: 0 100% 0 -14px; }
.site-link:hover .site-label, .site-link:focus-visible .site-label { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.site-end {
  position: fixed;
  top: 14px;
  right: clamp(12px, 3vw, 28px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-signin {
  font-size: 13.5px;
  line-height: 20px;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px rgba(0, 0, 0, .08);
}
.site-signin:hover, .site-signin[aria-current] { color: var(--text); background: rgba(255, 255, 255, .95); }
@media not all {
  .site-signin:hover, .site-signin[aria-current] { background: rgba(58, 58, 62, .95); }
}
/* The Appearance toggle (site.js, appearanceToggle): a round glass button
   beside "Sign in", as tall as it and the download button, with a moon in
   the light scheme (to go dark) and a sun in the dark one (to go light).
   Light or Dark chosen, the server sends this stylesheet with its dark-mode
   rules always on or never (themedCss), so the button that shows is always
   the one that changes the page. */
.site-theme {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 var(--shine), 0 8px 24px rgba(0, 0, 0, .08);
}
.site-theme:hover, .site-theme:focus-visible { color: var(--text); background: rgba(255, 255, 255, .95); }
.site-theme--light { display: none; }
.site-theme-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media not all {
  .site-theme:hover, .site-theme:focus-visible { background: rgba(58, 58, 62, .95); }
  .site-theme--dark { display: none; }
  .site-theme--light { display: grid; }
}

/* 900 px and narrower: no rail. A glass bar floats over the top of the
   page instead, with the logo and the name, the links by name, "Sign in"
   and the download button. */
@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 12px;
    padding: 0 clamp(12px, 4vw, 32px);
  }
  .site-nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--shine), 0 12px 40px rgba(0, 0, 0, .1);
  }
  /* The logo and the links go in the bar's row. */
  .site-rail { display: contents; }
  .site-brand { width: auto; height: auto; margin: 0; display: flex; align-items: center; gap: 10px; }
  .site-brand-name {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font: 600 17px var(--font-display);
    letter-spacing: -.02em;
  }
  .site-links { flex-direction: row; gap: 4px; font-size: 13.5px; }
  .site-link { width: auto; height: auto; display: block; padding: 7px 12px; border-radius: 999px; }
  /* The logo goes home. */
  .site-link--home, .site-icon { display: none; }
  .site-link:hover, .site-link:focus-visible { background: var(--hover); }
  .site-label {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    font: inherit;
    padding: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    transition: none;
  }
  .site-label::before { content: none; }
  .site-end { position: static; margin-left: auto; gap: 6px; }
  .site-signin {
    padding: 8px 12px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
  .site-signin:hover, .site-signin[aria-current] { background: var(--hover); }
  .site-theme {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
  .site-theme:hover, .site-theme:focus-visible { background: var(--hover); }
}
/* Narrower, where the links don't fit beside the logo, they go on a row of
   their own under it, rather than away: every section is a tap away with no
   script or menu. Whatever the browser scrolls to stops under the taller bar. */
@media (max-width: 820px) {
  .site-nav { flex-wrap: wrap; row-gap: 2px; border-radius: 26px; }
  .site-links { order: 3; flex: 1 0 100%; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin-left: -8px; }
  .site-link { padding-inline: 8px; }
  html { scroll-padding-top: 128px; }
}
/* On a phone "Sign in" moves to the footer (Footer). */
@media (max-width: 520px) {
  .site-signin { display: none; }
}
/* Narrower than 375 px the links take two rows, and the bar ends 152 px
   down: what the browser scrolls to stops under it. Below 390 px the
   button says "Download" alone, so it stays by the logo with the
   Appearance toggle, and below 360 the three are a little closer. */
@media (max-width: 374px) {
  html { scroll-padding-top: 168px; }
}
@media (max-width: 389px) {
  .btn-more { display: none; }
}
@media (max-width: 359px) {
  .site-nav { column-gap: 12px; }
}
/* A phone (720 px and narrower): the links leave the bar for a glass
   capsule that floats at the bottom of the window, as a phone app's tabs
   do: each page's icon over its name, the page's own in a pill. Home is in
   it, and Features isn't (it's a part of the home page). The bar keeps the
   logo, the Appearance toggle and the download button, on one row. Its
   glass is drawn by a layer of its own (::before): drawn by the bar, the
   glass (backdrop-filter) would hold the capsule, which is in the bar, to
   the bar instead of the window. */
@media (max-width: 720px) {
  :root { --page-top: 104px; }
  .site-nav {
    position: relative;
    isolation: isolate;
    flex-wrap: nowrap;
    border-radius: 999px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--glass);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--shine), 0 12px 40px rgba(0, 0, 0, .1);
  }
  .site-links {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    order: 0;
    flex: none;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    max-width: calc(100vw - 16px);
    margin: 0;
    padding: 5px;
    border-radius: 999px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--shine), 0 12px 40px rgba(0, 0, 0, .16);
  }
  .site-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 56px;
    height: 50px;
    padding: 0 7px;
    border-radius: 999px;
  }
  .site-link--home { display: flex; }
  .site-icon { display: block; }
  .site-link[href$="#features"] { display: none; }
  .site-icon { width: 22px; height: 22px; }
  .site-label { font-size: 10.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
  .site-link[aria-current] { background: var(--fill); color: var(--text); }
  /* Where the browser scrolls to stops between the bar and the capsule. */
  html {
    scroll-padding-top: 88px;
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}
/* In a short window (a phone on its side, or a page zoomed to 400%), the
   bar would cover half of it or more: there it stays at the top of the
   page, where it starts, and scrolls away with it. */
@media (max-width: 900px) and (max-height: 480px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 0; }
}

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

/* Its hairline runs the window's width, under the rail too. Its columns
   start the rail's room past the gutter and keep their width, as a page's
   column does (Pages); they're centred in the window once it has room on
   both sides. Its six columns fill their rows: two and two, three and
   three from 600 px, all six from 1220 (150 px each), and one under
   another on the narrowest phones. */
.site-footer { padding: 48px var(--gutter) 40px; border-top: 1px solid var(--hairline); }
/* On a phone, room under its last line for the navigation's capsule
   (Navigation). */
@media (max-width: 720px) {
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
.site-footer-cols {
  max-width: 1200px;
  margin: 0 auto 0 max(var(--rail-room), calc((100% - 1200px) / 2));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  font-size: 14px;
}
@media (max-width: 339px) {
  .site-footer-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 600px) {
  .site-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1220px) {
  .site-footer-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
:is(.site-footer-meta, .site-footer-col) { display: flex; flex-direction: column; gap: 10px; }
.site-footer-meta { color: var(--text-mute); }
/* The company's name comes from the settings, up to 200 characters. */
.site-footer-meta p { margin: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.site-footer-brand { display: flex; align-items: center; gap: 8px; font: 600 15px var(--font-display); letter-spacing: -.02em; color: var(--text); }
.site-footer-logo { display: block; flex: none; }
.site-footer-head { margin: 0; font: 500 12px var(--font-mono); color: var(--text-mute); }
/* A link wraps where it must, not balanced as a title is: balanced, its
   name would break up ("Code With / Me alternatives"). */
.site-footer-col a { color: var(--text-2); }
.site-footer-col a:hover { color: var(--text); }
/* Appearance: Auto, Light or Dark, the page's own in the text's colour. */
.site-appearance a { color: var(--text-2); }
.site-appearance a:hover { color: var(--text); }
.site-appearance [aria-current] { color: var(--text); font-weight: 500; }
/* The three choices stay on one line: a narrow column breaks before them. */
.site-appearance-choices { white-space: nowrap; }
/* "Sign in" only where the navigation hides its own: this rule comes before
   the one that shows it, which is no more specific. */
.site-footer-signin { display: none; }
@media (max-width: 520px) {
  .site-footer-signin { display: block; }
}

/* ---- Pages ----------------------------------------------------------- */

/* Every page but the home, as the owner's page designs lay them out (site.js
   longPage, lib/pages.js page, lib/compare.js): a band at the top, on the
   light gradient of the home page's hero, its bottom corners rounded,
   holding the page's heading and lead and what goes with them; then the
   page's column on the canvas, its words a shade softer than its headings.
   On the band's gradient the quieter greys are a shade deeper, as on the
   home page's: --text-mute and --text-dim read at under 4.5:1 where it's
   darkest. */
.page { line-height: 1.6; }
/* The band's gradient runs the window's width, under the rail (Navigation).
   The band's words and the column under it start --page-left in, clear of
   the rail. Where the window has room, they keep as far from its right
   edge, so the page is centred in the window, as the home page is; where
   it hasn't, the right padding is what the page's widest column leaves
   (--w-page: a long page's grid and a comparison's are wider than the
   column of words), the gutter at least, so the column keeps its width.
   900 px and narrower, the gutter on both sides. */
.page {
  --page-left: calc(var(--gutter) + var(--rail-room));
  --page-right: clamp(var(--gutter), calc(100% - var(--page-left) - var(--w-page)), var(--page-left));
  --w-page: var(--w-text);
}
.page:has(> .page-body > :is(.doc-layout, .compare)) { --w-page: var(--w-wide); }
.band {
  --text-mute: var(--text-lead);
  --text-dim: var(--text-dim-deep);
  padding: var(--page-top) var(--page-right) clamp(44px, 5vw, 68px) var(--page-left);
  border-radius: 0 0 44px 44px;
  background:
    radial-gradient(60% 60% at 14% 0%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(46% 70% at 94% 30%, #CBD0D8 0, rgba(203, 208, 216, 0) 70%),
    linear-gradient(170deg, #ECEEF0, #D8DCE1 60%, #E4E3E0);
}
@media not all {
  .band {
    background:
      radial-gradient(60% 60% at 14% 0%, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, 0) 70%),
      radial-gradient(46% 70% at 94% 30%, #262A31 0, rgba(38, 42, 49, 0) 70%),
      linear-gradient(170deg, #18191C, #121316 60%, #171619);
  }
}
.band-inner, .page-inner { max-width: var(--w-text); margin: 0 auto; }
.page-body {
  padding: clamp(48px, 6vw, 80px) var(--page-right) clamp(64px, 8vw, 104px) var(--page-left);
  color: var(--text-2);
}
/* Bold lead-ins, in the page's words, in ink. */
.page-body :where(b, strong) { color: var(--text); }
/* The names the rail shows beside it reach about 150 px in (Navigation): a
   page's words start clear of them, 164 px in, until they're centred
   further in. From 1041 px a long page's grid and a comparison's start
   nearer, the gutter past the rail's room, to keep the width a table of
   four products needs (Comparisons): the words in them start inside their
   boxes (the contents box, a table's cells) or in a column centred in
   them. */
@media (min-width: 901px) {
  .page { --page-left: calc(80px + var(--rail-room)); }
}
@media (min-width: 1041px) {
  .page:has(> .page-body > :is(.doc-layout, .compare)) { --page-left: calc(var(--gutter) + var(--rail-room)); }
}

/* A mono line over the heading: the page's section, or where it sits. */
.eyebrow { margin: 0 0 18px; font: 500 13px/1.6 var(--font-mono); color: var(--text-lead); }
.page-title {
  margin: 0;
  font: 600 clamp(42px, 6.4vw, 84px)/1.03 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
  /* A team's name can be one long word: it wraps rather than being cut off. */
  overflow-wrap: anywhere;
}
/* A heading's second half, in grey, as the home page has it. */
:is(.page-title, .page h2) em { font-style: normal; color: var(--text-dim); }
/* A heading and the line that goes on from it, set as one title, the
   second in grey (/pricing: "Pay once, US$169." and "Your pair joins
   free."): each keeps its own element, laid out inline, so the two wrap as
   one sentence does. */
.title-pair {
  margin: 0;
  font: 600 clamp(42px, 6.4vw, 84px)/1.03 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.title-pair > * { display: inline; margin: 0; font: inherit; letter-spacing: inherit; }
.title-pair > :not(:first-child) { color: var(--text-dim); }
.page-lead {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-lead);
  text-wrap: pretty;
}
/* Mono details: when a page was published and updated, a version and its
   size. */
.details { margin: 16px 0 0; font: 400 12.5px/1.6 var(--font-mono); color: var(--text-lead); }
.page-title + .details { margin-top: 22px; }

/* Defaults for plain paragraphs, kept as weak as a type selector (:where),
   so a class's own margin (.page-lead, .details, .notice) wins. None ends
   on a word alone, where the browser can help it (pretty). */
:where(.page) p { margin: 16px 0 0; text-wrap: pretty; }
:where(.page) :where(.actions, .note, .steps, .list, .form, .rows) + p { margin-top: 24px; }
:is(.band-inner, .page-inner) > :first-child { margin-top: 0; }
.muted { color: var(--text-mute); }
.small { font-size: 14px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }

/* Links in words: ink, a shade heavier, with a quiet line under them, as
   the home page's questions have them. Links with a class of their own
   (buttons, source numbers) look as that says. */
:where(.page) a:not([class]) {
  font-weight: 500;
  border-bottom: 1px solid var(--link-line);
  transition: border-color .15s ease;
}
:where(.page) a:not([class]):hover { border-bottom-color: var(--text); }

.page code {
  font: 500 .88em var(--font-mono);
  padding: .1em .35em;
  border-radius: 6px;
  background: var(--fill-soft);
  overflow-wrap: anywhere;
}
/* A word of a command never breaks (a flag cut after its "-" reads as
   something else): a command's lines wrap between its words (.tok, from
   site.js's shell() and inlineCommand()). */
.tok { white-space: nowrap; }

/* A status: what just happened, on a card with a grey dot. An error: a red
   tint and dot. */
.notice {
  position: relative;
  margin: 24px 0 0;
  padding: 13px 18px 13px 38px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.notice::before {
  content: "";
  position: absolute;
  left: 18px;
  top: calc(13px + .75em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
}
.notice--error { background: var(--danger-fill); border-color: var(--danger-edge); }
.notice--error::before { background: var(--danger-dot); }
:where(.page) .notice p { margin: 0; }

/* A note: a sentence set apart in a grey rounded box, as the owner's
   "Limit" notes are, its label (.note-label) in mono. */
.note {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--note-fill);
  border: 1px solid var(--note-edge);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
:where(.page) .note p { margin: 0; }
/* With the space after it, 8 px to the words, as the design has them. */
.note-label { margin-right: 4px; font: 600 12px var(--font-mono); color: var(--text); }

/* A call's code, under "Call code"; the code to type in another browser. */
.call-code {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font: 500 clamp(32px, 6vw, 52px)/1.15 var(--font-mono);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.code-display { color: var(--text); font: 500 clamp(32px, 6vw, 48px)/1.15 var(--font-mono); letter-spacing: .1em; }
/* A team's invite link. */
.invite-link {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.invite-link code { padding: 0; background: none; font-size: 14px; }

/* Numbered steps: each on a hairline, its number in SF Mono, as the home
   page's specs. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  text-wrap: pretty;
}
.steps > li:last-child { border-bottom: 1px solid var(--hairline); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  min-width: 24px;
  font: 500 12.5px var(--font-mono);
  color: var(--text-mute);
}
/* A list whose items each sit on a hairline, as the owner's designs list
   things: a short version, links with what each is. */
.list { list-style: none; margin: 24px 0 0; padding: 0; }
.list > li { margin: 0; padding: 14px 0; border-top: 1px solid var(--hairline); text-wrap: pretty; }
.list > li:last-child { border-bottom: 1px solid var(--hairline); }
/* Links, each with what it's for after it (/pricing's): the link's name in
   bold, its line under it only under the pointer. */
/* Under a heading, as close as the heading's own words would be. */
h2 + .list { margin-top: 16px; }
.list--links { margin-top: clamp(40px, 5vw, 64px); }
.list--links a:not([class]) { font-weight: 600; border-bottom-color: transparent; }
.list--links a:not([class]):hover { border-bottom-color: var(--text); }

/* A call to action at the foot of a page: its words beside its buttons, on
   the light gradient of the home page's. */
.action-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 26px 28px;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: linear-gradient(160deg, #E6E9EC, #D2D6DC 55%, #E8E5E0);
}
@media not all {
  .action-card { border-color: rgba(255, 255, 255, .08); background: linear-gradient(160deg, #1A1B1F, #141519 55%, #1B1A18); }
}
.action-card-text { flex: 1 1 320px; }
:where(.page) .action-card-title { margin: 0; font: 600 22px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
:where(.page) .action-card-sub { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-lead); }
.action-card .actions { margin: 0; }

/* Key caps, as the home page's questions draw them in a sentence. */
.keycaps { display: inline-flex; gap: 4px; vertical-align: middle; }
.key {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  font: 500 12px var(--font-mono);
  color: var(--text);
  background: var(--key-face);
  border: 1px solid var(--key-edge);
  box-shadow: inset 0 1px 0 var(--key-shine), 0 1px 1px var(--key-drop);
}

/* ---- Forms ----------------------------------------------------------- */

.form { margin: 28px 0 0; display: flex; flex-direction: column; gap: 20px; max-width: var(--w-form); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* A field with its button beside it where there's room: a name to save.
   The buttons are as wide as each other, so fields one above another end
   in a line. */
.form--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: none; }
.form--row .field { flex: 1 1 260px; }
.form--row .btn { min-width: 9.5em; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font: 500 13.5px/1.4 var(--font-sans); color: var(--text-2); }
.input {
  /* 16 px, so phones don't zoom in when it gets focus. */
  font: 400 16px/1.4 var(--font-sans);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--control-edge);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.input:focus-visible { outline-offset: 2px; }
.input::placeholder { color: var(--text-dim); opacity: 1; }
.input--code { max-width: 11em; font: 500 22px/1.3 var(--font-mono); letter-spacing: .12em; padding-block: 10px; }

/* "or", between the emailed link and Continue with Google: hairlines on
   both sides of the word. */
.or { display: flex; align-items: center; gap: 12px; max-width: var(--w-form); margin: 24px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
:where(.page) .or + .actions { margin-top: 16px; }
/* Continue with Google, as Google's sign-in branding has it, and its own
   button's measures: its "G" in full colour, on white with a grey edge (in
   dark mode, Google's dark fill and edge), in Google's type where the
   reader has it (it isn't served from here, so the page loads nothing
   from Google). */
.google-btn {
  display: inline-flex;
  align-items: center;
  /* Centred when it's as wide as the page, on phones, as a button's words are. */
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 9px 16px 9px 12px;
  font: 500 14px/20px Roboto, Arial, sans-serif;
  letter-spacing: .25px;
  background: #FFFFFF;
  color: #1F1F1F;
  border: 1px solid #747775;
  border-radius: 999px;
}
.google-btn:hover { background: #F2F2F2; color: #1F1F1F; }
.google-mark { flex: none; display: block; width: 20px; height: 20px; }
@media not all {
  .google-btn { background: #131314; color: #E3E3E3; border-color: #8E918F; }
  .google-btn:hover { background: #2A2A2C; color: #E3E3E3; }
}

/* ---- Lists, cards and prices ----------------------------------------- */

.account-section { margin-top: clamp(48px, 6vw, 64px); }
.section-title {
  margin: 0;
  font: 600 24px/1.2 var(--font-display);
  letter-spacing: -.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.page-inner > .section-title { margin-top: 48px; }
/* A grouped list, as macOS's System Settings draws one: rows in a card,
   hairlines between them. */
.rows {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}
.row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 14px 12px 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--hairline); }
/* Names come from people (up to 64 characters): they wrap, not overflow. */
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.row-meta { font-size: 13px; color: var(--text-mute); }
/* "this browser", "you": inline, so a name and its tag read as one line. */
.tag {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
  white-space: nowrap;
  vertical-align: 1px;
}
.inline-form { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
  transition: box-shadow .15s ease;
}
.card-label { font: 500 12px var(--font-mono); color: var(--text-mute); }
.card-title { margin: 0; font: 600 21px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.card-title em { font-style: normal; color: var(--text-dim); }
.card-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-mute); text-wrap: pretty; }
/* A card whose title is a link: all of it takes the click. */
.card-title a { border-bottom: 0; font-weight: inherit; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.card:has(.card-title a:hover) { box-shadow: 0 14px 36px rgba(0, 0, 0, .09); }
:where(.page) .card p { margin: 0; }
/* /pricing's two prices, as its design has them: glass cards on the band,
   each a mono label, the price, a line in ink and the words that go with
   it. The labels and words are written as the prices' notes always were
   ("starting calls", "once, plus applicable tax…"), and start with a
   capital here. */
.price-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: 36px;
}
.price-cards .card {
  gap: 10px;
  padding: 26px 28px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--shine), 0 16px 44px rgba(0, 0, 0, .08);
}
.price-cards .card-label { font: 400 12.5px/1.6 var(--font-mono); color: var(--text-lead); }
.price-cards :is(.card-label, .card-text)::first-letter { text-transform: uppercase; }
.price-cards .card-text { color: var(--text-lead); }
.price-cards .price-line { font-weight: 600; color: var(--text); }
.price-cards + .actions { margin-top: 24px; }
.price { margin: 0; font: 600 clamp(40px, 5vw, 56px)/1 var(--font-display); letter-spacing: -.04em; color: var(--text); }

/* ---- Long pages: docs, security, the legal pages ---------------------- */

/* The owner's design for them: the page's sections beside a glass box of
   its contents ("On this page"), which stays in view as the page scrolls;
   in a narrow window, the box over the sections. Each section on a
   hairline. */
.doc-layout {
  max-width: var(--w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 84px;
  padding: 14px 8px 10px;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--shine), 0 10px 30px rgba(0, 0, 0, .06);
  font-size: 13.5px;
}
.toc-title { margin: 0; padding: 0 12px 8px; font: 400 12.5px/1.6 var(--font-mono); color: var(--text-lead); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  border-bottom: 0;
  font-weight: inherit;
  line-height: 1.35;
  color: var(--text-lead);
  transition: background .15s ease;
}
.toc a:hover { background: var(--hover); color: var(--text); }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
/* A long list of contents (the legal pages' are up to about 520 px tall)
   sticks only in a window tall enough to show all of it below its sticky
   top; in a shorter one it stays at the top of the page, so every link in
   it can be scrolled to, and its focus seen. */
@media (max-height: 639px) {
  .toc--long { position: static; }
}
.prose { min-width: 0; }
/* A section's heading, in a long page, a comparison, or a page's column. */
.prose h2, .page-inner > h2:not([class]) {
  margin: clamp(40px, 5vw, 64px) 0 0;
  font: 600 clamp(26px, 3vw, 36px)/1.1 var(--font-display);
  letter-spacing: -.03em;
  text-wrap: balance;
  color: var(--text);
}
/* Where it's the first thing under the band. */
.page-inner > h2:first-child, .compare > .prose:first-child > :first-child,
.compare > .prose:first-child > section:first-child > h2 { margin-top: 0; }
.prose h3 { margin: 32px 0 0; font: 600 21px/1.25 var(--font-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.doc-layout .prose > section { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--hairline); }
.doc-layout .prose > section:first-of-type { padding-top: 0; border-top: 0; }
.doc-layout .prose > section > h2 { margin: 0; }
/* Plain lists; .steps and .list keep their own margin and padding (:where adds nothing). */
:where(.prose) :where(ul, ol) { margin: 16px 0 0; padding-left: 22px; }
:where(.prose) li { margin-top: 8px; }
.prose li::marker { color: var(--text-dim); }
/* A shell sample (site.js, shell()), on a card. Long commands wrap rather
   than hide past the edge of a scrolling box; if something still can't
   (wider text spacing on the narrowest phones), the box scrolls rather than
   the page's edge cutting it off. */
.prose pre {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  font: 400 14px/1.75 var(--font-mono);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}
/* A line apiece (a flex container shows none of the newlines between them),
   and one that wraps carries on under its command, past the "$ ". */
.prose pre code { display: flex; flex-direction: column; padding: 0; background: none; font: inherit; }
.prose .sh { padding-left: 2ch; text-indent: -2ch; }
/* A shell's prompt, here and in the home page's terminal. */
.prompt { color: var(--text-dim); }
/* Phones: commands a size smaller and out into the page's margin, so that
   more of each fits on a line before it wraps. */
@media (max-width: 480px) {
  .prose pre { margin-inline: -12px; padding-inline: 14px; font-size: 13px; }
}
@media (max-width: 359px) {
  .prose pre { font-size: 12px; }
}
.shortcuts { margin: 20px 0 0; }
.shortcut {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.shortcut dt { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.shortcut dd { margin: 0; text-wrap: pretty; }
.shortcut .key { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 14px; }

/* ---- Comparisons (lib/compare.js) ------------------------------------ */

/* As wide as a long page's grid, so that a table of four products has room;
   the words keep the page's column. */
.compare { max-width: var(--w-wide); margin: 0 auto; }
.compare > .prose { max-width: var(--w-text); margin-inline: auto; }
/* Where a page sits, over its heading, as the eyebrow is. The separator is
   drawn, not read out, after each step but the last, so that on a phone a
   line ends with one rather than starting with it. */
.breadcrumb { margin: 0 0 18px; font: 500 13px/1.6 var(--font-mono); color: var(--text-lead); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.breadcrumb li { margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; content: "›" / ""; margin: 0 8px; }
/* Underlined as the eyebrow's link in the design, the line by the words
   however tall a phone makes the link (Phones and touch). */
.breadcrumb a {
  font-weight: inherit;
  border-bottom: 0;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--link-line);
  text-underline-offset: 4px;
}
.breadcrumb a:hover { text-decoration-color: var(--text); }

/* A fact's source: a number linking to the list at the foot of the page, or
   for Doubles the page of this site that says the same, in a small mono
   pill. Inline, not an inline block, so the punctuation after it never
   wraps onto a line of its own. */
.src-ref {
  margin: 0 2px;
  padding: 1px 6px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--fill-soft);
  font: 500 11px/1.45 var(--font-mono);
  color: var(--text-2);
  vertical-align: 1px;
  white-space: nowrap;
}
.src-ref:hover { background: var(--fill-strong); color: var(--text); }

/* A table of facts, as the owner's designs draw one: on a white card, its
   columns named in mono, Doubles' own row (lib/compare.js marks it), or
   its column, tinted and in ink, and what the table is (its caption) in a
   mono line under the card. A table of one or two columns (--narrow) keeps
   to the page's column; one of more, in a comparison, has the article's
   width. Products' names down its side (--products) stay on one line, as
   the designs set them; a comparison's longer row names wrap. What's in it
   for screen readers alone (positioned out of sight) is placed in it, so it
   can't widen the page. */
.facts-wrap { position: relative; margin: 24px auto 0; }
.facts-wrap--narrow { max-width: var(--w-text); }
.facts {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.facts caption {
  caption-side: bottom;
  padding: 14px 4px 0;
  text-align: left;
  font: 400 12.5px/1.6 var(--font-mono);
  color: var(--text-lead);
  text-wrap: pretty;
}
.facts :is(th, td) { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); overflow-wrap: break-word; }
.facts thead :is(th, td) { padding: 16px 20px 12px; border-top: 0; }
.facts thead th { font: 500 12px/1.45 var(--font-mono); color: var(--text-mute); }
.facts tbody th { width: 10em; font-weight: 600; color: var(--text); }
.facts-wrap--products tbody th { width: auto; white-space: nowrap; }
.facts :is(th, td).facts-ours, .facts tr.facts-ours > * { background: var(--note-fill); color: var(--text); }
.facts tr.facts-ours > td { font-weight: 500; }
/* The tint stays inside the card's corners: the cells at them are rounded
   too. With its head for screen readers alone (a table of one column), the
   first row is the top. */
.facts thead tr > :first-child { border-top-left-radius: 25px; }
.facts thead tr > :last-child { border-top-right-radius: 25px; }
.facts tbody tr:last-child > :first-child { border-bottom-left-radius: 25px; }
.facts tbody tr:last-child > :last-child { border-bottom-right-radius: 25px; }
.facts thead.visually-hidden + tbody tr:first-child > :first-child { border-top-left-radius: 25px; }
.facts thead.visually-hidden + tbody tr:first-child > :last-child { border-top-right-radius: 25px; }
.facts thead.visually-hidden + tbody tr:first-child > * { border-top: 0; }

/* In a window up to 1040 px wide (where a wide table beside the rail would
   be squeezed too), a table is at least as wide as its columns need to be
   read (620 px, as the owner's designs have it; 860 with four columns or
   more, --wide), and where the page is narrower it scrolls sideways inside
   its card, as the designs have it: the wrapper is the card then, its
   caption at its foot, staying in view. A keyboard scrolls it too:
   compare.js lets the wrapper take focus. A table of one column fits as it
   is, its names wrapping on a phone. A phone shows no scroll bar: a soft
   shadow at an edge says there's more of the table past it. The card's
   colour, scrolling with the table, covers the shadow at the edge it has
   reached (or both, where nothing is past them). */
@media (max-width: 1040px) {
  .facts-wrap {
    overflow-x: auto;
    container-type: inline-size;
    --shade: rgba(0, 0, 0, .18);
    background:
      linear-gradient(to right, var(--card) 40%, transparent) left center / 36px 100% no-repeat local,
      linear-gradient(to left, var(--card) 40%, transparent) right center / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left center / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right center / 14px 100% no-repeat scroll,
      var(--card);
    border: 1px solid var(--hairline);
    border-radius: 26px;
    box-shadow: var(--card-shadow);
  }
  .facts { background: none; border: 0; border-radius: 0; box-shadow: none; }
  .facts-wrap:not(.facts-wrap--single) .facts { min-width: 620px; }
  .facts-wrap.facts-wrap--wide .facts { min-width: 860px; }
  .facts caption { position: sticky; left: 0; max-width: 100cqi; padding: 14px 20px 16px; border-top: 1px solid var(--hairline); }
  /* The last row is above the caption, not at the card's corners. */
  .facts tbody tr:last-child > :first-child, .facts tbody tr:last-child > :last-child { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
/* On the dark card, a shadow as dark as it needs to be to show. */
@media not all {
  .facts-wrap { --shade: rgba(0, 0, 0, .75); }
}
@media (max-width: 600px) {
  .facts-wrap--single tbody th { width: 9em; white-space: normal; }
}

/* Doubles in a few lines: a name and its line, on hairlines. */
.glance { margin: 20px 0 0; }
.glance div {
  display: grid;
  grid-template-columns: minmax(130px, 190px) 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.glance div:last-child { border-bottom: 1px solid var(--hairline); }
.glance dt { font-weight: 600; color: var(--text); }
.glance dd { margin: 0; text-wrap: pretty; }

.prose .cards { margin-top: 24px; }
/* A card's title in a comparison's words is a card's, not a section's. */
.prose .card-title { margin: 0; line-height: 1.2; }
/* Every page a page cites, numbered as its source numbers are. */
.sources { padding-left: 2.4em; font-size: 14px; line-height: 1.55; }
.sources li { overflow-wrap: anywhere; }
.sources li::marker { font: 500 12px var(--font-mono); color: var(--text-mute); }
.sources li:target { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }

/* ---- Home ------------------------------------------------------------ */

/* The home page's own sections, the design "Doubles Home v2": its hero
   with the desktop, the features and their demos, the hosts, the questions
   and the call to action. Every rule here is under body.home (site.js,
   layout's `home`), so none of it reaches another page; the tokens it
   shares with every page are on :root (Tokens), and these are its own. */

/* The desktop in the hero is the design's 1200 × 720 scene: its sizes are
   in --sc, 1 px where it's laid out at that size and scaled down, as the
   design does, or else a 1200th of its width, worked out once where it's
   set (a registered length, so it's in pixels from there down). */
@property --sc {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

.home {
  --hm-red: #B3261E;
  --hm-green: #1F7A45;
  /* A window in the scene and the demos, and its line numbers. */
  --hm-window: #FFFFFF;
  --hm-window-edge: rgba(0, 0, 0, .09);
  --hm-number: #A1A1A6;
  /* Xcode's colours for keywords, functions, types and comments. */
  --hm-kw: oklch(0.42 0.1 300);
  --hm-fn: oklch(0.42 0.1 200);
  --hm-ty: oklch(0.42 0.1 75);
  --hm-cm: #6E6E73;
  /* The desktop behind the scene's and the demos' windows. */
  --hm-desktop: linear-gradient(160deg, #DDE1E6, #C6CBD3 55%, #E8E5E0);
  /* People's colours, as the app has them (ParticipantColor.swift): each
     a hue (--h), as a swatch at this lightness and chroma; a pointer and
     its name tag, with their words; and words and initials on its tint. */
  --sw-l: 0.55;
  --sw-c: 0.1;
  --tag-l: 0.5;
  --tag-c: 0.1;
  --tag-ink: #FFFFFF;
  --tag-edge: #FFFFFF;
  --tx-l: 0.385;
  --tx-c: 0.1;
  --tint: .2;
}

@media not all {
  .home {
    --hm-red: #FF8A80;
    --hm-green: #5BD07F;
    --hm-window: #1C1C1E;
    --hm-window-edge: rgba(255, 255, 255, .1);
    --hm-number: #636366;
    --hm-kw: oklch(0.8 0.09 300);
    --hm-fn: oklch(0.82 0.08 200);
    --hm-ty: oklch(0.85 0.09 75);
    --hm-cm: #8E8E93;
    --hm-desktop: linear-gradient(160deg, #2B2F36, #1C1F25 55%, #2A2825);
    --sw-l: 0.76;
    --sw-c: 0.07;
    --tag-l: 0.76;
    --tag-c: 0.07;
    --tag-ink: #0A0B0D;
    --tag-edge: #0A0B0D;
    --tx-l: 0.91;
    --tx-c: 0.05;
    --tint: .22;
  }
}

/* Glass: the design's panels, over whatever is behind them. */
.home :is(.glass, .hero-badge) {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-edge);
}

/* ---- Home: hero ---- */

/* Its gradient runs on to the window's edges, under the rail (Navigation).
   What's on it keeps the rail's room on both sides, so the heading and the
   desktop under it are centred in the window. */
.home .hero {
  position: relative;
  padding: clamp(120px, 14vw, 176px) calc(var(--gutter) + var(--rail-room)) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(60% 46% at 16% 0%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(46% 50% at 92% 26%, #CBD0D8 0, rgba(203, 208, 216, 0) 70%),
    radial-gradient(50% 40% at 40% 100%, #E9E6E1 0, rgba(233, 230, 225, 0) 70%),
    linear-gradient(170deg, #ECEEF0, #D8DCE1 60%, #E4E3E0);
  border-radius: 0 0 44px 44px;
  container: hero / inline-size;
}
@media not all {
  .home .hero {
    background:
      radial-gradient(60% 46% at 16% 0%, rgba(255, 255, 255, .07) 0, rgba(255, 255, 255, 0) 70%),
      radial-gradient(46% 50% at 92% 26%, #262A31 0, rgba(38, 42, 49, 0) 70%),
      radial-gradient(50% 40% at 40% 100%, #1F1D1B 0, rgba(31, 29, 27, 0) 70%),
      linear-gradient(170deg, #18191C, #121316 60%, #171619);
  }
}
/* Under the bar, as a page's band starts (--page-top): lower where the
   bar's links take two rows. */
@media (max-width: 820px) {
  .home .hero { padding-top: var(--page-top); }
}
.home .hero-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.home .hero-badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--shine), 0 4px 14px rgba(0, 0, 0, .06);
}
.home .hero-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
/* On a phone the badge breaks before the version, not inside it. */
.home .hero-badge .version { white-space: nowrap; }
.home .hero-title {
  margin: 28px 0 0;
  max-width: 1000px;
  font: 600 clamp(44px, 7.4vw, 100px)/1.02 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
/* A heading's second half, in grey. */
.home :is(.hero-title, .cta-title, .feature-title, .hosts-title, .trust-title, .faq-title) em { font-style: normal; color: var(--text-dim); }
.home :is(.hero-title, .cta-title) em { color: var(--text-dim-deep); }
.home .lead {
  margin: 26px 0 0;
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-lead);
  text-wrap: pretty;
}
.home .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.home .hero-note { margin: 14px 0 0; font: 400 12px var(--font-mono); color: var(--text-small); }

/* A way to stop the page's motion (WCAG 2.2.2), which the design doesn't
   have: small, under the desktop, drawn rather than the browser's own
   checkbox, and gone where nothing moves (Motion, below). */
.home .stage-foot { max-width: 1200px; margin: 10px auto 0; display: flex; justify-content: flex-end; }
.home .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font: 400 12px var(--font-mono);
  color: var(--text-small);
  cursor: pointer;
}
.home .motion-toggle:hover { color: var(--text); }
.home .motion-toggle input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  margin: 0;
  width: 14px;
  height: 14px;
  padding: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.home .motion-toggle input:checked { background: currentColor content-box; }
@media (forced-colors: active) {
  .home .motion-toggle input { -webkit-appearance: auto; appearance: auto; }
}

/* The four stat cards: 2 × 2 rather than 3 + 1, by the hero's width (where
   auto-fit has 2 and 3 columns: 210 px each and 12 px gaps). */
.home .stats {
  max-width: 1200px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}
.home .stage-foot + .stats { margin-top: clamp(12px, 2vw, 14px); }
@container hero (432px <= width < 876px) {
  .home .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home .stat {
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 var(--shine), 0 10px 30px rgba(0, 0, 0, .06);
}
.home .stat-value { font: 600 38px/1 var(--font-display); letter-spacing: -.035em; }
.home .stat-unit { font-size: .5em; letter-spacing: -.01em; color: var(--text-small); }
.home .stat-label { margin-top: 8px; font-size: 13px; color: var(--text-lead); text-wrap: pretty; }

/* ---- Home: the desktop in the hero ---- */

/* The design's 1200 × 720 scene at any width: a 5:3 box whose contents are
   sized in --sc. Every outline in it is calc(1 * var(--sc)) wide, so it
   thins as the scene shrinks. */
.home .stage {
  position: relative;
  max-width: 1200px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  aspect-ratio: 5 / 3;
  container-type: inline-size;
}
.home .scene {
  --sc: calc(100cqw / 1200);
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(22 * var(--sc));
  background: var(--hm-desktop);
  border: calc(1 * var(--sc)) solid rgba(0, 0, 0, .1);
  box-shadow: 0 calc(50 * var(--sc)) calc(120 * var(--sc)) rgba(0, 0, 0, .2), 0 0 0 calc(6 * var(--sc)) rgba(255, 255, 255, .45);
  font-size: calc(13 * var(--sc));
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}
@media not all {
  .home .scene { border-color: rgba(255, 255, 255, .1); box-shadow: 0 calc(50 * var(--sc)) calc(120 * var(--sc)) rgba(0, 0, 0, .55), 0 0 0 calc(6 * var(--sc)) rgba(255, 255, 255, .06); }
}
/* As the design does it: laid out at 1200 × 720 and scaled to the stage's
   width, so its words and hairlines shrink with it, in proportion. (Laid
   out at a phone's width instead, Chrome draws a border of under 1 px at
   1 px, and the system font sets small text wider: the call panel's names
   would run into each other.) A browser that can't divide a length by a
   length (Chrome 157 and Safari 26.2 can) lays it out at the stage's
   width, as above. */
@supports (scale: calc(100cqw / 1200px)) {
  .home .scene {
    --sc: 1px;
    inset: auto;
    left: 0;
    top: 0;
    width: 1200px;
    height: 720px;
    transform-origin: 0 0;
    scale: calc(100cqw / 1200px);
  }
}
/* The glass panels over the desktop: their rims and blur, in its units. */
.home .scene .glass {
  -webkit-backdrop-filter: blur(calc(30 * var(--sc))) saturate(160%);
  backdrop-filter: blur(calc(30 * var(--sc))) saturate(160%);
  border-width: calc(1 * var(--sc));
}
.home .sc-menubar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: calc(30 * var(--sc));
  display: flex;
  align-items: center;
  gap: calc(18 * var(--sc));
  padding: 0 calc(16 * var(--sc));
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(calc(20 * var(--sc))) saturate(180%);
  backdrop-filter: blur(calc(20 * var(--sc))) saturate(180%);
}
.home .sc-app { font-weight: 600; }
.home .sc-extras { margin-left: auto; display: flex; align-items: center; gap: calc(16 * var(--sc)); }
/* Doubles in the menu bar, its panel open: a filled circle and an outlined one. */
.home .sc-item { display: flex; padding: calc(3 * var(--sc)) calc(7 * var(--sc)); border-radius: calc(5 * var(--sc)); background: rgba(0, 0, 0, .16); }
.home .sc-mark { position: relative; display: block; width: calc(20 * var(--sc)); height: calc(13 * var(--sc)); }
.home .sc-mark::before, .home .sc-mark::after {
  content: "";
  position: absolute;
  top: 0;
  width: calc(13 * var(--sc));
  height: calc(13 * var(--sc));
  border-radius: 50%;
}
.home .sc-mark::before { left: 0; background: var(--text); }
.home .sc-mark::after { left: calc(7 * var(--sc)); border: calc(1.5 * var(--sc)) solid var(--text); background: rgba(255, 255, 255, .6); }
.home .sc-battery { display: block; width: calc(22 * var(--sc)); height: calc(11 * var(--sc)); border: calc(1.5 * var(--sc)) solid var(--text); border-radius: calc(3 * var(--sc)); }
@media not all {
  .home .sc-menubar { background: rgba(30, 30, 32, .55); }
  .home .sc-item { background: rgba(255, 255, 255, .22); }
  .home .sc-mark::after { background: rgba(0, 0, 0, .35); }
}

.home .sc-win {
  position: absolute;
  left: calc(44 * var(--sc));
  top: calc(64 * var(--sc));
  width: calc(800 * var(--sc));
  height: calc(580 * var(--sc));
  overflow: hidden;
  border-radius: calc(12 * var(--sc));
  background: var(--hm-window);
  border: calc(1 * var(--sc)) solid var(--hm-window-edge);
  box-shadow: 0 calc(30 * var(--sc)) calc(80 * var(--sc)) rgba(0, 0, 0, .16);
}
.home .sc-titlebar {
  height: calc(38 * var(--sc));
  display: flex;
  align-items: center;
  gap: calc(8 * var(--sc));
  padding: 0 calc(14 * var(--sc));
  background: var(--well);
  border-bottom: calc(1 * var(--sc)) solid var(--hairline);
}
.home :is(.sc-light, .d-light) { flex: none; border-radius: 50%; background: #FF5F57; }
.home :is(.sc-light, .d-light):nth-child(2) { background: #FEBC2E; }
.home :is(.sc-light, .d-light):nth-child(3) { background: #28C840; }
.home .sc-light { width: calc(12 * var(--sc)); height: calc(12 * var(--sc)); }
.home .sc-title { margin: 0 auto; padding-right: calc(52 * var(--sc)); color: var(--text-mute); }
.home .sc-code { position: relative; height: calc(542 * var(--sc)); }
.home .sc-lines { padding: calc(22 * var(--sc)) 0; font: 400 calc(14.5 * var(--sc))/calc(30 * var(--sc)) var(--font-mono); }
.home .sc-line { display: flex; white-space: pre; }
.home .sc-line--hl { background: oklch(0.55 0.1 245 / .1); }
.home .sc-ln { flex: none; width: calc(56 * var(--sc)); padding-right: calc(18 * var(--sc)); text-align: right; color: var(--hm-number); }
.home .caret {
  display: inline-block;
  width: calc(8 * var(--sc));
  height: calc(18 * var(--sc));
  margin-left: calc(1 * var(--sc));
  vertical-align: calc(-3 * var(--sc));
  background: var(--text);
  animation: hm-caret 1s steps(1) infinite;
}
@media not all {
  .home .sc-line--hl { background: oklch(0.76 0.07 245 / .16); }
}
.home .kw { color: var(--hm-kw); }
.home .fn { color: var(--hm-fn); }
.home .ty { color: var(--hm-ty); }
.home .cm { color: var(--hm-cm); }
.home .bad { color: var(--hm-red); }

/* Named pointers: the scene's, and the demos' (smaller, in pixels). */
.home .ptr { position: absolute; z-index: 6; }
.home .ptr--ada { --h: 55; }
.home .ptr--sam { --h: 245; }
.home .ptr-arrow { display: block; overflow: visible; }
.home .ptr-arrow path { fill: oklch(var(--tag-l) var(--tag-c) var(--h)); stroke: var(--tag-edge); stroke-width: 1.2; stroke-linejoin: round; }
.home .ptr-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  background: oklch(var(--tag-l) var(--tag-c) var(--h));
  color: var(--tag-ink);
}
.home .sc-ptr .ptr-arrow { width: calc(18 * var(--sc)); height: calc(25 * var(--sc)); }
.home .sc-ptr .ptr-tag {
  left: calc(15 * var(--sc));
  top: calc(19 * var(--sc));
  font-size: calc(11 * var(--sc));
  padding: calc(3 * var(--sc)) calc(7 * var(--sc));
  border-radius: calc(5 * var(--sc));
}
/* Sam's, which is the Mac's own cursor while he drives: still (no motion),
   where its name tag fits. */
.home .sc-ptr--sam { left: 66%; top: 40%; animation: hm-sam 12s var(--ease) infinite; }

.home .sc-notice {
  position: absolute;
  left: calc(444 * var(--sc));
  top: calc(42 * var(--sc));
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: calc(12 * var(--sc));
  padding: calc(9 * var(--sc)) calc(16 * var(--sc));
  border-radius: 999px;
  box-shadow: inset 0 calc(1 * var(--sc)) 0 var(--shine), 0 calc(16 * var(--sc)) calc(40 * var(--sc)) rgba(0, 0, 0, .14);
}
.home .sc-notice b { font-weight: 600; }
.home .sc-dot { flex: none; display: block; width: calc(8 * var(--sc)); height: calc(8 * var(--sc)); border-radius: 50%; background: oklch(var(--sw-l) var(--sw-c) var(--h)); }
.home .sc-dot--sam { --h: 245; }
.home .sc-dot--ada { --h: 55; }
.home .sc-mute { color: var(--text-mute); }
.home .sc-key {
  font: 500 calc(12 * var(--sc)) var(--font-mono);
  padding: calc(3 * var(--sc)) calc(7 * var(--sc));
  border-radius: calc(5 * var(--sc));
  background: rgba(0, 0, 0, .1);
}

/* The call panel and the knock stacked under it, as wide as each other. */
.home :is(.sc-panel, .sc-knock) {
  position: absolute;
  right: calc(26 * var(--sc));
  z-index: 25;
  width: calc(290 * var(--sc));
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--sc));
  border-radius: calc(26 * var(--sc));
  box-shadow: inset 0 calc(1 * var(--sc)) 0 var(--shine), 0 calc(24 * var(--sc)) calc(60 * var(--sc)) rgba(0, 0, 0, .14);
}
.home .sc-panel { top: calc(52 * var(--sc)); padding: calc(14 * var(--sc)); }
.home .sc-panel-head { display: flex; align-items: center; justify-content: space-between; font-size: calc(12.5 * var(--sc)); }
.home .sc-panel-title { font-weight: 600; }
.home .sc-tools { display: flex; gap: calc(4 * var(--sc)); }
.home .sc-round {
  width: calc(20 * var(--sc));
  height: calc(20 * var(--sc));
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: calc(12 * var(--sc));
  line-height: 1;
  color: var(--text-mute);
  background: var(--hover);
}
.home .sc-callcode { display: flex; align-items: baseline; gap: calc(10 * var(--sc)); margin-top: calc(-10 * var(--sc)); font-size: calc(12 * var(--sc)); }
.home .sc-code-id { font-family: var(--font-mono); font-weight: 500; }
.home .sc-copy { color: var(--text-mute); }
.home .sc-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--sc)); }
.home .sc-person { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--sc)); }
.home .sc-avatar {
  display: grid;
  place-items: center;
  width: calc(64 * var(--sc));
  height: calc(64 * var(--sc));
  border-radius: 50%;
  font: 600 calc(20 * var(--sc)) var(--font-display);
  background: oklch(var(--sw-l) var(--sw-c) var(--h) / var(--tint));
  color: oklch(var(--tx-l) var(--tx-c) var(--h));
}
/* Ada, speaking: a ring in her colour. */
.home .sc-avatar--ada {
  --h: 55;
  box-shadow: 0 0 0 calc(2 * var(--sc)) var(--hm-window), 0 0 0 calc(4.5 * var(--sc)) oklch(var(--sw-l) var(--sw-c) var(--h));
}
.home .sc-avatar--sam { --h: 245; }
/* Muted: the initial on the plain fill. */
.home .sc-avatar--grace { --h: 150; background: var(--hover); }
.home .sc-avatar--linus { --h: 330; flex: none; width: calc(40 * var(--sc)); height: calc(40 * var(--sc)); font-size: calc(16 * var(--sc)); }
/* Under each circle, the name in ink and what they're doing in grey, but
   "driving" in ink, and someone muted all in grey (CallPanel's TileName). */
.home .sc-name { font-size: calc(12 * var(--sc)); }
.home .sc-doing { color: var(--text-mute); }
.home .sc-person--ink .sc-doing { color: inherit; }
.home .sc-person--quiet .sc-name { color: var(--text-mute); }
.home .sc-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(6 * var(--sc)); font-size: calc(12 * var(--sc)); }
.home .sc-controls span { padding: calc(8 * var(--sc)) 0; text-align: center; border-radius: 999px; background: rgba(0, 0, 0, .05); border: calc(1 * var(--sc)) solid var(--hairline); }
.home .sc-controls .sc-on { background: var(--text); color: var(--canvas); border-color: transparent; }
.home .sc-controls .sc-leave { background: rgba(229, 72, 77, .12); color: var(--hm-red); border-color: rgba(229, 72, 77, .3); font-weight: 600; }
.home .sc-stats {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--sc));
  padding-top: calc(10 * var(--sc));
  border-top: calc(1 * var(--sc)) solid var(--hairline);
  font: 400 calc(10.5 * var(--sc))/1.4 var(--font-mono);
  letter-spacing: -.02em;
  color: var(--text-mute);
}
.home .sc-direct { color: var(--hm-green); }
@media not all {
  .home .sc-controls span { background: rgba(255, 255, 255, .08); }
}

.home .sc-knock { top: calc(372 * var(--sc)); padding: calc(16 * var(--sc)); }
.home .sc-knock-who { display: flex; align-items: center; gap: calc(12 * var(--sc)); }
.home .sc-knock-text { display: flex; flex-direction: column; font-size: calc(12.5 * var(--sc)); }
.home .sc-knock-title { font-size: calc(14 * var(--sc)); font-weight: 600; }
.home .sc-knock-actions { display: flex; gap: calc(8 * var(--sc)); font-size: calc(13 * var(--sc)); }
.home .sc-btn { flex: 1; padding: calc(8 * var(--sc)); text-align: center; border-radius: 999px; border: calc(1 * var(--sc)) solid var(--edge); }
.home .sc-btn--primary {
  font-weight: 600;
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: inset 0 calc(1 * var(--sc)) 0 #FFFFFF, 0 calc(1 * var(--sc)) calc(2 * var(--sc)) rgba(0, 0, 0, .08);
}
@media not all {
  .home .sc-btn--primary {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: inset 0 calc(1 * var(--sc)) 0 rgba(255, 255, 255, .1);
  }
}

/* The bar for drawing and reactions, under the editor. */
.home .sc-toolbar {
  position: absolute;
  left: calc(444 * var(--sc));
  bottom: calc(26 * var(--sc));
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: calc(6 * var(--sc));
  padding: calc(8 * var(--sc));
  border-radius: calc(26 * var(--sc));
  box-shadow: inset 0 calc(1 * var(--sc)) 0 var(--shine), 0 calc(20 * var(--sc)) calc(50 * var(--sc)) rgba(0, 0, 0, .16);
}
.home .sc-draw { display: flex; align-items: center; gap: calc(8 * var(--sc)); padding: calc(8 * var(--sc)) calc(12 * var(--sc)); border-radius: 999px; background: rgba(0, 0, 0, .1); }
.home .sc-draw .sc-dot { width: calc(14 * var(--sc)); height: calc(14 * var(--sc)); }
.home .sc-shortcut { font: 400 calc(11 * var(--sc)) var(--font-mono); color: var(--text-mute); }
.home .sc-seg { display: flex; padding: calc(3 * var(--sc)); border-radius: 999px; background: rgba(0, 0, 0, .05); font-size: calc(12 * var(--sc)); }
.home .sc-seg span { padding: calc(5 * var(--sc)) calc(10 * var(--sc)); border-radius: 999px; color: var(--text-mute); }
.home .sc-seg .sc-seg-on { background: rgba(0, 0, 0, .12); color: var(--text); }
.home .sc-plain { padding: calc(8 * var(--sc)) calc(10 * var(--sc)); color: var(--text-mute); }
.home .sc-rule { width: calc(1 * var(--sc)); height: calc(24 * var(--sc)); margin: 0 calc(4 * var(--sc)); background: var(--edge); }
.home .sc-emojis { display: flex; gap: calc(2 * var(--sc)); font-size: calc(20 * var(--sc)); }
.home .sc-emojis span { padding: calc(4 * var(--sc)) calc(6 * var(--sc)); border-radius: calc(8 * var(--sc)); }
.home .sc-emojis .sc-emoji-on { background: rgba(0, 0, 0, .1); }
.home .sc-gif { font: 600 calc(12 * var(--sc)) var(--font-mono); padding: calc(7 * var(--sc)) calc(10 * var(--sc)); border-radius: 999px; border: calc(1 * var(--sc)) solid var(--edge); }
@media not all {
  .home .sc-key, .home .sc-draw, .home .sc-emojis .sc-emoji-on { background: rgba(255, 255, 255, .14); }
  .home .sc-seg { background: rgba(255, 255, 255, .06); }
  .home .sc-seg .sc-seg-on { background: rgba(255, 255, 255, .16); }
}

/* ---- Home: features ---- */

/* The rail's room on both sides, as the hero's desktop has, so the two
   line up, centred in the window. */
.home .features {
  max-width: min(1200px, calc(100% - 2 * var(--rail-room)));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 48px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 140px);
}
.home .feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
/* Every other feature has its demo first, on the left, its words beside it
   in the last column. In one column (narrower than about 1175 px) that's
   the only column, over the demo: every feature reads its words, then its
   demo. */
.home .feature > .demo:first-child + * { grid-row: 1; grid-column: -2; }
.home :is(.feature-title, .hosts-title, .faq-title) {
  margin: 0;
  font: 600 clamp(32px, 4.2vw, 54px)/1.05 var(--font-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
/* A feature's label is part of its heading, for search engines, and looks
   as the design draws it, above it. */
.home .feature-label {
  display: block;
  margin-bottom: 18px;
  font: 500 13px var(--font-mono);
  letter-spacing: normal;
  color: var(--text-mute);
}
/* A feature still in beta says so beside its label, as the app's pill
   does beside its field (LineBar). */
.home .feature-beta {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 500 12px/20px var(--font-sans);
  color: var(--text-2);
}
.home .feature-lead { margin: 22px 0 0; max-width: 520px; color: var(--text-mute); text-wrap: pretty; }
.home .feature-note {
  margin: 18px 0 0;
  max-width: 520px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--text-2);
}
.home .specs { display: flex; flex-direction: column; max-width: 540px; margin-top: 28px; font-size: 14.5px; }
.home .spec { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--hairline); color: var(--text-2); }
.home .spec-key { flex: none; min-width: 84px; font: 500 12px var(--font-mono); color: var(--text-mute); }
.home .keys { display: flex; align-items: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.home .keycap {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  font: 500 14px var(--font-mono);
  color: var(--text);
  background: linear-gradient(#FFFFFF, #F4F4F3);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(0, 0, 0, .1);
}
.home .keys-note { margin-left: 10px; font-size: 13.5px; color: var(--text-mute); }
.home .bars { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin-top: 30px; font-size: 13.5px; }
.home .bars-caption { font: 500 12px var(--font-mono); color: var(--text-mute); }
.home .bar-row { display: grid; grid-template-columns: minmax(90px, 130px) 1fr; gap: 14px; align-items: center; font-weight: 600; }
.home .bar-row--stock { font-weight: 400; color: var(--text-mute); }
/* Wide enough for "WebRTC's own encoder" on one line where there's room;
   on a phone it wraps, so the bars keep their proportions. */
@media (min-width: 600px) {
  .home .bar-row { grid-template-columns: minmax(90px, 160px) 1fr; }
}
.home .bar-cell { display: flex; align-items: center; gap: 10px; }
.home .bar { height: 10px; border-radius: 999px; }
.home .bar--ours { width: 35%; background: var(--text); }
.home .bar--stock { width: 78%; background: #C9C9CC; }
.home .bar-value { white-space: nowrap; }
/* The seven colours people get, in the app's order. */
.home .swatches { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.home .swatch { width: 22px; height: 22px; border-radius: 50%; background: oklch(var(--sw-l) var(--sw-c) var(--h)); }
.home .swatch:first-child { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px var(--text); }
.home .swatch--55 { --h: 55; }
.home .swatch--245 { --h: 245; }
.home .swatch--150 { --h: 150; }
.home .swatch--330 { --h: 330; }
.home .swatch--95 { --h: 95; }
.home .swatch--290 { --h: 290; }
.home .swatch--20 { --h: 20; }
@media not all {
  .home .keycap {
    background: linear-gradient(#3A3A3C, #2C2C2E);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .4);
  }
  .home .bar--stock { background: #48484A; }
}

/* ---- Home: the feature demos ---- */

/* The 16:10 frame every demo plays in; demo sizes are in cqw of it. */
.home .demo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 26px;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .1);
}
.home .d-fill { position: absolute; inset: 0; background: var(--hm-desktop); white-space: nowrap; color: var(--text); }
.home .d-fill--white { background: var(--hm-window); }
@media not all {
  .home .demo { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
}
.home .d-win {
  position: absolute;
  overflow: hidden;
  border-radius: 1.6cqw;
  background: var(--hm-window);
  border: 1px solid var(--hm-window-edge);
  box-shadow: 0 3cqw 8cqw rgba(0, 0, 0, .14);
}
.home .d-bar {
  height: 5cqw;
  display: flex;
  align-items: center;
  gap: .9cqw;
  padding: 0 1.8cqw;
  background: var(--well);
  border-bottom: 1px solid var(--hairline);
}
.home .d-light { width: 1.4cqw; height: 1.4cqw; }
.home .d-title { margin: 0 auto; padding-right: 5cqw; font: 400 1.6cqw var(--font-sans); color: var(--text-mute); }
.home .d-code { padding: 2cqw 0; }
.home .d-line { display: flex; height: 3.6cqw; white-space: pre; font: 400 1.9cqw/3.6cqw var(--font-mono); }
.home .d-ln { flex: none; width: 6cqw; padding-right: 2cqw; text-align: right; color: var(--hm-number); }
.home .d-ptr .ptr-arrow { width: 16px; height: 22px; }
.home .d-ptr .ptr-tag { left: 13px; top: 17px; font-size: 1.6cqw; padding: .4cqw 1cqw; border-radius: .8cqw; }
.home :is(.d1-dock, .d3-tools, .d4-card, .d5-panel) { box-shadow: inset 0 1px 0 var(--shine), 0 2.4cqw 6cqw rgba(0, 0, 0, .14); }

/* 01 Dock: still, it's up, with Sam's pointer at the bottom edge. */
.home .d1-win { left: 5%; top: 8%; width: 90%; height: 100%; }
.home .d1-dock {
  position: absolute;
  left: 50%;
  bottom: 2.4cqw;
  z-index: 5;
  display: flex;
  gap: 1.1cqw;
  padding: 1.1cqw;
  border-radius: 2.8cqw;
  transform: translate(-50%, 0);
  animation: hm-d1dock 9s var(--ease) infinite;
}
.home .d1-tile {
  width: 6cqw;
  height: 6cqw;
  border-radius: 1.5cqw;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), var(--tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 .3cqw .8cqw rgba(0, 0, 0, .18);
}
.home .d1-tile:nth-child(1) { --tile: #3A3A3C; }
.home .d1-tile:nth-child(2) { --tile: #8E8E93; }
.home .d1-tile:nth-child(3) { --tile: #C7C7CC; }
.home .d1-tile:nth-child(4) { --tile: #636366; }
.home .d1-tile:nth-child(5) { --tile: #AEAEB2; }
.home .d1-tile:nth-child(6) { --tile: #48484A; }
.home .d1-tile:nth-child(7) { --tile: #D1D1D6; }
.home .d1-tile:nth-child(8) { --tile: #7C7C80; }
.home .d1-tile--bounce { animation: hm-d1bounce 9s var(--ease) infinite; }
.home .d1-ptr { left: 26%; top: 80%; animation: hm-d1cur 9s var(--ease) infinite; }

/* 02 Sharpness: still, the crisp copy part of the way across. */
.home .d2-text { position: absolute; inset: 0; width: 100cqw; background: var(--hm-window); }
.home .d2-text--blur { filter: blur(.22cqw); opacity: .85; }
.home .d2-sweep {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 44%;
  overflow: hidden;
  border-right: 1.5px solid var(--text);
  animation: hm-d2w 8s var(--ease) infinite;
}
.home .d2-chip {
  position: absolute;
  bottom: 2.5cqw;
  z-index: 4;
  padding: .7cqw 1.5cqw;
  border-radius: 999px;
  font: 500 1.6cqw var(--font-mono);
}
.home .d2-chip--left { left: 2.5cqw; background: var(--text); color: var(--canvas); }
.home .d2-chip--right { right: 2.5cqw; background: var(--hm-window); color: var(--text-2); border: 1px solid var(--edge); }

/* 03 Draw and react: still, the line circled and the reaction up. */
.home .d3-win { left: 5%; top: 8%; width: 90%; height: 100%; }
.home .d3-fail { background: rgba(229, 72, 77, .1); }
.home .d3-ink { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.home .ink-stroke {
  fill: none;
  stroke: oklch(var(--sw-l) var(--sw-c) 55);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: hm-d3ink 9s var(--ease) infinite;
}
.home .d3-pop { position: absolute; left: 62%; top: 56%; z-index: 3; font: 6.5cqw/1 system-ui; transform-origin: center; animation: hm-d3pop 9s var(--ease) infinite; }
.home .d3-ptr { left: 52%; top: 70%; animation: hm-d3cur 9s var(--ease) infinite; }
.home .d3-tools {
  position: absolute;
  left: 50%;
  bottom: 2.4cqw;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: .9cqw;
  border-radius: 999px;
  font: 400 1.7cqw var(--font-sans);
}
.home .d3-draw { display: flex; align-items: center; gap: .9cqw; padding: .8cqw 1.4cqw; border-radius: 999px; background: rgba(0, 0, 0, .1); }
.home .d3-dot { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: oklch(var(--sw-l) var(--sw-c) 55); }
.home .d3-key { font: 400 1.4cqw var(--font-mono); color: var(--text-mute); }
.home .d3-fade { padding: .8cqw 1.2cqw; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.home .d3-keep { padding: .8cqw 1.4cqw .8cqw .4cqw; color: var(--text-mute); }
@media not all {
  .home .d3-fail { background: rgba(255, 105, 97, .16); }
  .home .d3-draw { background: rgba(255, 255, 255, .14); }
  .home .d3-fade { background: rgba(255, 255, 255, .1); }
}

/* 04 Notes: still, written, with the notice in. */
.home .d4-win { left: 6%; top: 21%; width: 88%; height: 100%; }
.home .d4-body { display: flex; flex-direction: column; gap: .9cqw; padding: 2.4cqw 3cqw; }
.home .d4-line {
  min-height: 2.8cqw;
  overflow: hidden;
  font: 400 1.9cqw/2.8cqw var(--font-mono);
  color: var(--text-2);
  animation: hm-d4reveal 11s var(--ease) infinite backwards;
}
.home .d4-line--strong { font-weight: 600; color: var(--text); }
.home .d4-line--mute { color: var(--text-mute); }
.home .d4-line:nth-child(2) { animation-delay: .45s; }
.home .d4-line:nth-child(3) { animation-delay: .9s; }
.home .d4-line:nth-child(4) { animation-delay: 1.35s; }
.home .d4-line:nth-child(5) { animation-delay: 1.8s; }
.home .d4-line:nth-child(6) { animation-delay: 2.25s; }
.home .d4-line:nth-child(7) { animation-delay: 2.7s; }
.home .d4-line:nth-child(8) { animation-delay: 3.15s; }
.home .d4-line:nth-child(9) { animation-delay: 3.6s; }
.home .d4-card {
  position: absolute;
  right: 4%;
  top: 4%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.3cqw 1.5cqw;
  border-radius: 2.6cqw;
  animation: hm-d4card 11s var(--ease) infinite;
}
.home .d4-thumb {
  flex: none;
  width: 3.6cqw;
  height: 4.4cqw;
  border-radius: .7cqw;
  background: repeating-linear-gradient(135deg, #E6E6E4 0 .5cqw, #DDDDDB .5cqw 1cqw);
}
.home .d4-card-text { display: flex; flex-direction: column; gap: .2cqw; width: 38cqw; white-space: normal; }
.home .d4-card-title { font: 600 1.8cqw var(--font-sans); }
.home .d4-card-sub { font: 400 1.5cqw/1.35 var(--font-sans); color: var(--text-mute); }
.home .d4-open {
  flex: none;
  margin-left: 1cqw;
  padding: .7cqw 1.5cqw;
  border-radius: 999px;
  font: 600 1.5cqw var(--font-sans);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(0, 0, 0, .08);
}
@media not all {
  .home .d4-thumb { background: repeating-linear-gradient(135deg, #3A3A3C 0 .5cqw, #333335 .5cqw 1cqw); }
  .home .d4-open { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
}

/* 05 Agent: still, Ada's pointer on Allow Once. */
.home .d5-panel {
  position: absolute;
  left: 6%;
  top: 7%;
  width: 88%;
  height: 86%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3cqw;
}
.home .d5-head { display: flex; align-items: center; gap: 1.2cqw; padding: 1.8cqw 2.4cqw; border-bottom: 1px solid var(--hairline); }
.home .d5-agent { font: 600 1.8cqw var(--font-sans); }
.home .d5-folder { font: 400 1.5cqw var(--font-mono); color: var(--text-mute); }
.home .d5-watching { margin-left: auto; font: 400 1.5cqw var(--font-sans); color: var(--text-mute); }
.home .d5-body { display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.2cqw 2.4cqw; font: 400 1.8cqw/1.5 var(--font-sans); white-space: normal; }
.home .d5-msg { display: flex; gap: 1.2cqw; }
.home .d5-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  font: 600 1.4cqw var(--font-sans);
  background: oklch(var(--sw-l) var(--sw-c) 55 / var(--tint));
  color: oklch(var(--tx-l) var(--tx-c) 55);
}
.home .d5-reply { padding-left: 4.2cqw; color: var(--text-2); }
.home .d5-box {
  margin-left: 4.2cqw;
  overflow: hidden;
  border-radius: 1.6cqw;
  border: 1px solid oklch(var(--sw-l) var(--sw-c) 55 / .45);
  background: rgba(0, 0, 0, .04);
}
.home .d5-ask { padding: 1.2cqw 1.6cqw; border-bottom: 1px solid var(--hairline); font: 600 1.7cqw var(--font-sans); }
.home .d5-diff { padding: .8cqw 0; font: 400 1.6cqw/3cqw var(--font-mono); animation: hm-d5diff 9s var(--ease) infinite; }
.home .d5-del, .home .d5-add { padding: 0 1.6cqw; white-space: pre; }
.home .d5-del { background: rgba(229, 72, 77, .12); color: var(--hm-red); }
.home .d5-add { background: rgba(63, 191, 108, .12); color: var(--hm-green); }
.home .d5-foot { position: relative; padding: 1.2cqw 1.4cqw; border-top: 1px solid var(--hairline); font: 400 1.5cqw var(--font-sans); }
.home .d5-buttons { display: flex; align-items: center; gap: 1cqw; animation: hm-d5buttons 9s var(--ease) infinite; }
.home .d5-btn { padding: .7cqw 1.4cqw; border-radius: 999px; white-space: nowrap; background: rgba(0, 0, 0, .05); border: 1px solid var(--hairline); }
.home .d5-btn--call { margin-left: auto; }
.home .d5-btn--once {
  padding-inline: 1.6cqw;
  font-weight: 600;
  background: rgba(255, 255, 255, .8);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(0, 0, 0, .08);
  animation: hm-d5btn 9s var(--ease) infinite;
}
/* Once it's answered, the request says so in place of its buttons. */
.home .d5-ok {
  position: absolute;
  left: 1.4cqw;
  top: 50%;
  translate: 0 -50%;
  font-weight: 600;
  color: var(--hm-green);
  opacity: 0;
  animation: hm-d5ok 9s var(--ease) infinite;
}
.home .d5-ptr { left: 82%; top: 58%; animation: hm-d5cur 9s var(--ease) infinite; }
@media not all {
  .home .d5-box { background: rgba(255, 255, 255, .04); }
  .home .d5-btn { background: rgba(255, 255, 255, .08); }
  .home .d5-btn--once { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
  .home .d5-del { background: rgba(255, 105, 97, .16); }
  .home .d5-add { background: rgba(76, 212, 122, .14); }
}

/* 06 Type a Line: still, Sam's prompt dictated in the bar, not yet typed.
   His window: Ada's screen (her terminal) over the bar, on the window's
   own ground, as LineBar sits under the picture. */
.home .d6-win { left: 5%; top: 7%; width: 90%; height: 86%; display: flex; flex-direction: column; }
.home .d6-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  padding: 2.4cqw 3cqw;
  font: 400 1.8cqw/3cqw var(--font-mono);
}
.home .d6-mute { color: var(--text-mute); }
.home .d6-sent { opacity: 0; animation: hm-d6sent 9s var(--ease) infinite; }
.home .d6-box {
  margin-top: auto;
  padding: .6cqw 1.4cqw;
  border: 1px solid var(--hm-number);
  border-radius: 1cqw;
}
.home .d6-typed {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: top;
  animation: hm-d6typed 9s var(--ease) infinite;
}
.home .d6-box .caret { width: 1.1cqw; height: 2.2cqw; margin-left: .2cqw; vertical-align: -.45cqw; }
.home .d6-bar {
  display: flex;
  flex-direction: column;
  gap: .6cqw;
  padding: 1.2cqw 2.4cqw 1.3cqw;
  background: var(--well);
  border-top: 1px solid var(--hairline);
}
.home .d6-row { display: flex; align-items: center; gap: 1.2cqw; }
.home .d6-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 4.4cqw;
  padding: 0 1.4cqw;
  overflow: hidden;
  border-radius: 1cqw;
  background: var(--hm-window);
  border: 1px solid var(--hairline);
  font: 400 1.8cqw var(--font-sans);
}
.home .d6-hint { position: absolute; left: 1.4cqw; color: var(--text-mute); opacity: 0; animation: hm-d6hint 9s var(--ease) infinite; }
.home .d6-words { overflow: hidden; max-width: 40cqw; white-space: pre; }
.home .d6-words--1 { animation: hm-d6words1 9s var(--ease) infinite; }
.home .d6-words--2 { animation: hm-d6words2 9s var(--ease) infinite; }
.home .d6-words--3 { animation: hm-d6words3 9s var(--ease) infinite; }
/* Dictation's microphone, at the end of what it has put in. */
.home .d6-mic {
  flex: none;
  width: 2cqw;
  height: 2cqw;
  margin-left: .6cqw;
  fill: currentColor;
  color: var(--text-mute);
  opacity: 0;
  animation: hm-d6mic 9s var(--ease) infinite;
}
.home .d6-beta {
  padding: .1cqw .9cqw;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font: 500 1.4cqw/2.2cqw var(--font-sans);
  color: var(--text-mute);
}
.home .d6-close { font: 400 2.2cqw var(--font-sans); color: var(--text-mute); }
.home .d6-status { position: relative; height: 2.2cqw; font: 400 1.45cqw/2.2cqw var(--font-sans); color: var(--text-mute); }
.home .d6-say { position: absolute; left: 0; top: 0; opacity: 0; }
.home .d6-say--1 { opacity: 1; animation: hm-d6say1 9s var(--ease) infinite; }
.home .d6-say--2 { animation: hm-d6say2 9s var(--ease) infinite; }
.home .d6-say--3 { animation: hm-d6say3 9s var(--ease) infinite; }
/* The Return key, a keycap as the features' (.keycap), over the end of
   the field as it's pressed: once to type the line, and again to send it. */
.home .d6-key {
  position: absolute;
  right: 19.5%;
  bottom: 15%;
  min-width: 0;
  height: auto;
  padding: .6cqw 1.6cqw;
  border-radius: 1cqw;
  font: 500 1.6cqw var(--font-sans);
  opacity: 0;
  animation: hm-d6key 9s var(--ease) infinite;
}

/* ---- Home: hosts, guests and security ---- */

.home .hosts-title { margin-bottom: 32px; max-width: 760px; }
.home .host-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.home .host-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}
.home .host-label { font: 500 12px var(--font-mono); color: var(--text-mute); }
.home .host-title { margin: 0; font: 600 21px/1.2 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
/* Words that end a title together: "command line.", "mid-call." */
.home .nowrap { white-space: nowrap; }
.home .host-text { margin: 0; font-size: 14.5px; color: var(--text-mute); text-wrap: pretty; }
.home .terminal {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--well);
  border: 1px solid var(--hairline);
  font: 400 13.5px/1.8 var(--font-mono);
  white-space: nowrap;
}
.home .trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px;
  align-items: start;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.home .trust-title { margin: 0; font: 600 clamp(26px, 3.2vw, 38px)/1.1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.home .trust-text { margin: 0; color: var(--text-mute); text-wrap: pretty; }
.home .text-links { display: flex; flex-wrap: wrap; column-gap: 24px; }
.home .text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 1px;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--link-line);
}
.home .text-link:hover { border-bottom-color: var(--text); }

/* ---- Home: questions ---- */

/* After the security note, in its type: each question over its answer, a
   hairline above each, in two columns where there's room. The rail's room
   on both sides, as the features have. */
.home .faq { max-width: min(1200px, calc(100% - 2 * var(--rail-room))); margin: 0 auto; padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 48px) 0; }
.home .faq-title { margin-bottom: 32px; }
.home .faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.home .faq-item { padding: 18px 0 24px; border-top: 1px solid var(--hairline); }
.home .faq-q { margin: 0; font: 600 18px/1.3 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.home .faq-a { margin: 8px 0 0; font-size: 15px; color: var(--text-mute); text-wrap: pretty; }
.home .faq-a a { font-weight: 500; border-bottom: 1px solid var(--link-line); }
.home .faq-a a:hover { border-bottom-color: var(--text); }
.home .faq-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-mute); }

/* ---- Home: download ---- */

/* Its card keeps the rail's room on both sides, as the hero's desktop
   does. */
.home .cta { padding: clamp(72px, 9vw, 128px) calc(var(--gutter) + var(--rail-room)) clamp(56px, 7vw, 88px); }
.home .cta-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 48px);
  text-align: center;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, .06);
  background:
    radial-gradient(50% 60% at 20% 0%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 50% at 86% 90%, #C9CED6 0, rgba(201, 206, 214, 0) 70%),
    linear-gradient(160deg, #E6E9EC, #D2D6DC 55%, #E8E5E0);
}
@media not all {
  .home .cta-card {
    border-color: rgba(255, 255, 255, .08);
    background:
      radial-gradient(50% 60% at 20% 0%, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, 0) 70%),
      radial-gradient(40% 50% at 86% 90%, #23262C 0, rgba(35, 38, 44, 0) 70%),
      linear-gradient(160deg, #1A1B1F, #141519 55%, #1B1A18);
  }
}
/* The logo, the two discs of the Mac app's icon, with the shadow they cast. */
.home .cta-logo { display: block; margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .18)); }
.home .cta-title {
  margin: 30px auto 0;
  max-width: 760px;
  font: 600 clamp(38px, 5.6vw, 76px)/1.02 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.home .cta-price { margin: 20px auto 0; max-width: 560px; color: var(--text-lead); overflow-wrap: anywhere; text-wrap: balance; }
.home .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.home .cta-note { margin-top: 16px; font: 400 12px var(--font-mono); color: var(--text-small); }


/* ---- Home: phones and touch ---- */

@media (max-width: 720px), (pointer: coarse) and (max-width: 1023px) {
  .home .motion-toggle { min-height: 40px; }
  /* Taller by the room above it, so its underline stays under the words. */
  .home .text-link { margin-top: 0; padding-top: 16px; }
}

/* ---- Home: motion, as designed ---- */

@keyframes hm-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hm-sam { 0%, 30% { left: 86%; top: 74%; } 44% { left: 66%; top: 40%; } 56%, 80% { left: 12%; top: 30%; } 92% { left: 60%; top: 80%; } 100% { left: 86%; top: 74%; } }
@keyframes hm-d1cur { 0%, 12% { left: 58%; top: 28%; } 38%, 74% { left: 26%; top: 80%; } 100% { left: 58%; top: 28%; } }
@keyframes hm-d1dock { 0%, 36% { transform: translate(-50%, 160%); } 44%, 80% { transform: translate(-50%, 0); } 88%, 100% { transform: translate(-50%, 160%); } }
@keyframes hm-d1bounce { 0%, 52% { transform: translateY(0); } 56% { transform: translateY(-35%); } 60% { transform: translateY(0); } 63% { transform: translateY(-14%); } 66%, 100% { transform: translateY(0); } }
@keyframes hm-d2w { 0%, 8% { width: 28%; } 48%, 58% { width: 76%; } 100% { width: 28%; } }
@keyframes hm-d3cur { 0% { left: 72%; top: 16%; } 18%, 24% { left: 10%; top: 39%; } 34% { left: 57%; top: 43%; } 44% { left: 13%; top: 37%; } 50%, 70% { left: 52%; top: 70%; } 100% { left: 72%; top: 16%; } }
@keyframes hm-d3ink { 0%, 22% { stroke-dashoffset: 100; opacity: 1; } 46%, 70% { stroke-dashoffset: 0; opacity: 1; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hm-d3pop { 0%, 54% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 64%, 84% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(.6); opacity: 0; } }
@keyframes hm-d4reveal { 0% { max-width: 0; } 10%, 86% { max-width: 100%; } 92%, 100% { max-width: 0; } }
@keyframes hm-d4card { 0%, 4% { transform: translateY(-130%); opacity: 0; } 10%, 80% { transform: none; opacity: 1; } 86%, 100% { transform: translateY(-130%); opacity: 0; } }
@keyframes hm-d5cur { 0%, 8% { left: 30%; top: 30%; } 34%, 56% { left: 82%; top: 58%; } 78% { left: 42%; top: 50%; } 100% { left: 30%; top: 30%; } }
@keyframes hm-d5btn { 0%, 40% { transform: scale(1); } 44% { transform: scale(.94); } 48%, 100% { transform: scale(1); } }
@keyframes hm-d5diff { 0%, 50% { opacity: 1; } 54%, 100% { opacity: .4; } }
@keyframes hm-d5buttons { 0%, 48% { opacity: 1; } 52%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes hm-d5ok { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes hm-d6hint { 0%, 8% { opacity: 1; } 10%, 44% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes hm-d6words1 { 0%, 11% { max-width: 0; } 17%, 44% { max-width: 40cqw; } 45%, 100% { max-width: 0; } }
@keyframes hm-d6words2 { 0%, 20% { max-width: 0; } 26%, 44% { max-width: 40cqw; } 45%, 100% { max-width: 0; } }
@keyframes hm-d6words3 { 0%, 29% { max-width: 0; } 32%, 44% { max-width: 40cqw; } 45%, 100% { max-width: 0; } }
@keyframes hm-d6mic { 0%, 8% { opacity: 0; } 10%, 35% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes hm-d6say1 { 0%, 44% { opacity: 1; } 45%, 93% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes hm-d6say2 { 0%, 44% { opacity: 0; } 45%, 64% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes hm-d6say3 { 0%, 64% { opacity: 0; } 65%, 93% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes hm-d6typed { 0%, 44% { max-width: 0; } 45%, 64% { max-width: 60cqw; } 65%, 100% { max-width: 0; } }
@keyframes hm-d6sent { 0%, 64% { opacity: 0; } 66%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes hm-d6key {
  0%, 39% { opacity: 0; transform: none; }
  41% { opacity: 1; transform: none; }
  44% { opacity: 1; transform: scale(.92); }
  46% { opacity: 1; transform: none; }
  49%, 59% { opacity: 0; transform: none; }
  61% { opacity: 1; transform: none; }
  64% { opacity: 1; transform: scale(.92); }
  66% { opacity: 1; transform: none; }
  69%, 100% { opacity: 0; transform: none; }
}

/* No motion (Motion stops every animation): what the design shows with its
   animation off, each scene at the still frame its rules above set, and no
   control to pause what doesn't move. */
@media (prefers-reduced-motion: reduce) {
  .home .stage-foot { display: none; }
  .home .stage-foot + .stats { margin-top: clamp(28px, 4vw, 48px); }
}
/* "pause animations": everything stops where it is, and the caret shows. */
.home:has(#pause-motion:checked) *,
.home:has(#pause-motion:checked) *::before,
.home:has(#pause-motion:checked) *::after { animation-play-state: paused; }
.home:has(#pause-motion:checked) .caret { animation: none; }
/* A browser without :has() couldn't act on it: no control rather than one
   that does nothing. */
@supports not selector(:has(*)) {
  .home .motion-toggle { display: none; }
}

/* ---- Phones and touch ------------------------------------------------ */

/* Everything there is to tap is at least 40 px tall on a phone, held either
   way (a phone on its side is 740-932 px wide). From 1024 px, a touch
   screen (a tablet held sideways) gets the design's sizes, as a mouse
   does: its targets are spaced far enough apart (WCAG 2.5.8). */
@media (max-width: 720px), (pointer: coarse) and (max-width: 1023px) {
  .site-brand { min-height: 40px; }
  .btn--sm { padding-block: 10px; line-height: 18px; }
  .site-link { padding-block: 10px; line-height: 20px; }
  /* 40 px with its edge, as the toggle and the download button beside it. */
  .site-signin { padding-block: 9px; }
  .site-footer-col { gap: 0; }
  .site-footer-col a { padding-block: 10px; }
  .site-theme { width: 40px; height: 40px; }
  .site-appearance a { display: inline-block; padding-block: 10px; }
  .breadcrumb :is(a, [aria-current]) { display: inline-block; padding-block: 8px; }
}
@media (max-width: 560px) {
  .shortcut { grid-template-columns: 1fr; gap: 8px; }
  .glance div { grid-template-columns: 1fr; gap: 4px; }
}

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

/* The download buttons' ring turns for ever on the home page, which has a
   control to pause it (Home: motion). Elsewhere it turns once as the page
   opens, and again while the button is under the pointer or has keyboard
   focus: nothing there moves for more than 5 seconds unasked (WCAG 2.2.2). */
@keyframes ring { to { --ring: 360deg; } }
@keyframes ring-again { from { --ring: 0deg; } to { --ring: 360deg; } }
body:not(.home) .btn--ring::before { animation-iteration-count: 1; }
body:not(.home) .btn--ring:is(:hover, :focus-visible)::before { animation-name: ring-again; animation-iteration-count: infinite; }
/* No motion at all where the reader asks for less: the ring rests, drawn. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Forced colours -------------------------------------------------- */

/* Forced colours (Windows' contrast themes) drop fills and shadows: the
   buttons keep their edges, which is all they'd have left, and the drawn
   dots and the ring go. The home page's desktop and demos are pictures
   (role="img", with words for screen readers): they keep their colours, as
   an image does, rather than turning into outlines. */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .btn--ring::before, .notice::before { display: none; }
  .home :is(.stage, .demo) { forced-color-adjust: none; }
}
