/* PopAgent's site stylesheet.
 *
 * Carried over from the accepted page (see reference/swift-site-export/), not
 * rewritten: every colour, glow and shadow is a custom property, the site is
 * light whatever the reader's appearance, the dark palette is a class a page
 * or a section opts into, and the mascot's landing is a CSS scroll-driven
 * animation. The page ships no JavaScript, and this file is the reason it does
 * not need any.
 */

:root {
  color-scheme: light;
  /* brand/tokens.json is the source of these colours. Mist and Midnight are the
     App icon's two plates, so the page and the icon agree. */
  --bg: #f4f7fc;
  /* Sky: links and focus rings, never decoration. */
  --accent: #0072a3;
  /* Pop Pink, one spot per view: the recommended tier's badge. White type reads
     on it at 4.8:1 in both palettes. */
  --accent-pop: #cd3381;
  --mesh-0: url("mesh/light-0.ba114154e3a5.webp");
  --mesh-1: url("mesh/light-1.7255c341e52a.webp");
  --mesh-2: url("mesh/light-2.afdf26d47076.webp");
  --mesh-3: url("mesh/light-3.71503b7191d1.webp");
  --mesh-4: url("mesh/light-4.30e4aa9356ed.webp");
  --mesh-5: url("mesh/light-5.9b013e7d4e51.webp");
  --ink: #162036;
  --ink-soft: #505869;
  --ink-faint: #656c7d;
  --ink-ghost: #9ea5b2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --hairline: rgba(22, 32, 54, 0.1);
  --bar: rgba(22, 32, 54, 0.03);
  --shadow-card: 0 18px 44px -26px rgba(22, 32, 54, 0.3);
  --shadow-window: 0 34px 80px -34px rgba(22, 32, 54, 0.3);
  --button-bg: #162036;
  --button-hover-bg: #1f2a42;
  --button-active-bg: #0f1728;
  --button-ink: #f4f7fc;
  --button-border: rgba(0, 0, 0, 0.12);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-button-active: 0 1px 2px rgba(0, 0, 0, 0.08);
  --headline-fill: var(--ink);
  --bar-bg: rgba(255, 255, 255, 0.48);
  --bar-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.12));
  --bar-edge: rgba(255, 255, 255, 0.6);
  --bar-shadow: 0 8px 28px -12px rgba(22, 32, 54, 0.24), 0 2px 6px -3px rgba(22, 32, 54, 0.12);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --shadow-glass: 0 8px 28px -12px rgba(22, 32, 54, 0.16), 0 0 0 1px rgba(22, 32, 54, 0.04);
  --glass-menu-bg: #ffffff;
  --button-highlight: rgba(255, 255, 255, 0.18);
  --bar-button-bg: rgba(22, 32, 54, 0.06);
  --button-quiet-hover-bg: rgba(22, 32, 54, 0.1);
  --shadow-featured: 0 26px 60px -28px rgba(22, 32, 54, 0.4);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --callout-figure-fill: linear-gradient(
    105deg,
    #0077c8 0%,
    #8b3dff 14%,
    #d62884 26%,
    #00c8ff 45%,
    #b64cff 53%,
    #ff2e97 61%,
    var(--ink) 74%,
    var(--ink) 100%
  );
}
/* One site, one palette: it is light, as Apple's is, and does not follow the
   reader's appearance. The dark palette stays for the page or section that is
   set dark on purpose -- a product band, say -- and applies to whatever
   carries the class, `body` included. */
.scheme-dark {
  color-scheme: dark;
  --bg: #162036;
  --accent: #6ec6f6;
  --mesh-0: url("mesh/dark-0.60acb10d481c.webp");
  --mesh-1: url("mesh/dark-1.c11063184992.webp");
  --mesh-2: url("mesh/dark-2.be7f10ca8fdc.webp");
  --mesh-3: url("mesh/dark-3.45951ddc946e.webp");
  --mesh-4: url("mesh/dark-4.ad8e2db00d15.webp");
  --mesh-5: url("mesh/dark-5.92b3564a56a6.webp");
  --ink: #f4f7fc;
  --ink-soft: #c9ced9;
  --ink-faint: #9ea5b2;
  --ink-ghost: #505869;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #1f2a42;
  --hairline: rgba(255, 255, 255, 0.1);
  --bar: rgba(255, 255, 255, 0.04);
  --shadow-card: none;
  --shadow-window: 0 50px 110px -40px rgba(6, 11, 22, 0.8);
  --button-bg: #f4f7fc;
  --button-hover-bg: #ffffff;
  --button-active-bg: #e1e5ed;
  --button-ink: #162036;
  --button-border: rgba(255, 255, 255, 0.16);
  --shadow-button: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-button-active: 0 1px 2px rgba(0, 0, 0, 0.16);
  --bar-bg: rgba(31, 42, 66, 0.62);
  --bar-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.03));
  --bar-edge: rgba(255, 255, 255, 0.18);
  --bar-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.55), 0 2px 6px -3px rgba(0, 0, 0, 0.3);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 28px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.16);
  --glass-menu-bg: #1f2a42;
  --button-highlight: rgba(255, 255, 255, 0.8);
  --bar-button-bg: rgba(255, 255, 255, 0.08);
  --button-quiet-hover-bg: rgba(255, 255, 255, 0.14);
  --shadow-featured: 0 30px 70px -30px rgba(6, 11, 22, 0.85);
  /* Gentle: the sweep runs over the whole headline block, so a steep
     one dims the second line and reads as de-emphasis. */
  --headline-fill: linear-gradient(180deg, #ffffff 38%, #c9ced9 128%);
  --callout-figure-fill: linear-gradient(
    105deg,
    #4dc3ff 0%,
    #b98bff 14%,
    #ff6bb5 26%,
    #5ce1ff 45%,
    #d08bff 53%,
    #ff66b8 61%,
    var(--ink) 74%,
    var(--ink) 100%
  );
  background-color: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Chinese can break between any two characters and greedy wrapping fills each
   line, so a sentence can end on one stranded character; Latin ends on one
   word. Short centred text is balanced instead, in its own rule. */
p, li { text-wrap: pretty; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--bg);
}
/* The wash is a sequence of pre-rendered, pre-dithered frames
   (scripts/generate_mesh_frames.py), not CSS gradients: a browser quantises
   a gradient this faint into one-level bands, and grain laid over the top
   only masks them. Frames are opaque, so a cross-fade blends noisy pixels and
   the noise keeps working as dither; only opacity and transform animate, so
   nothing is repainted. Each frame is the previous one's colours moved a
   sixth of the way round the perimeter, as in the Composer's mesh. It belongs
   to the first screen and scrolls away with it; each frame's edge is exactly
   --bg, so nothing marks where it ends. */
.glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow i {
  position: absolute;
  inset: -6%;
  background: var(--mesh-0) center / cover no-repeat;
}
.glow i:nth-child(n + 2) { opacity: 0; }
.glow i:nth-child(2) { background-image: var(--mesh-1); }
.glow i:nth-child(3) { background-image: var(--mesh-2); }
.glow i:nth-child(4) { background-image: var(--mesh-3); }
.glow i:nth-child(5) { background-image: var(--mesh-4); }
.glow i:nth-child(6) { background-image: var(--mesh-5); }
/* Every frame drifts together, so the shared dither stays registered. */
@media (prefers-reduced-motion: no-preference) {
  .glow i { animation: mesh-drift 7s ease-in-out infinite alternate; }
  .glow i:nth-child(n + 2) {
    animation:
      mesh-frame-1 16s linear infinite,
      mesh-drift 7s ease-in-out infinite alternate;
  }
  .glow i:nth-child(3) { animation-name: mesh-frame-2, mesh-drift; }
  .glow i:nth-child(4) { animation-name: mesh-frame-3, mesh-drift; }
  .glow i:nth-child(5) { animation-name: mesh-frame-4, mesh-drift; }
  .glow i:nth-child(6) { animation-name: mesh-frame-5, mesh-drift; }
}
/* 0 -> 1 -> ... -> 5 -> 0, a sixth of the cycle each. Each frame fades in
   over the one beneath it; frames 1 to 4 drop out while frame 5 covers them,
   and frame 5 fading out returns to frame 0. */
@keyframes mesh-frame-1 {
  0% { opacity: 0; }
  16.667%, 83.333% { opacity: 1; }
  83.343%, 100% { opacity: 0; }
}
@keyframes mesh-frame-2 {
  0%, 16.667% { opacity: 0; }
  33.333%, 83.333% { opacity: 1; }
  83.343%, 100% { opacity: 0; }
}
@keyframes mesh-frame-3 {
  0%, 33.333% { opacity: 0; }
  50%, 83.333% { opacity: 1; }
  83.343%, 100% { opacity: 0; }
}
@keyframes mesh-frame-4 {
  0%, 50% { opacity: 0; }
  66.667%, 83.333% { opacity: 1; }
  83.343%, 100% { opacity: 0; }
}
@keyframes mesh-frame-5 {
  0%, 66.667% { opacity: 0; }
  83.333% { opacity: 1; }
  100% { opacity: 0; }
}
/* The control points' slight motion: the whole field breathes and drifts. */
@keyframes mesh-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}
/* Safari paints the strip above the page -- the status bar on iPhone --
   in body's background, flat --bg, while the wash and the hero's dots are
   strongest at the page's top edge, so the two met in a hard line. The top
   of the page fades into --bg instead, over the wash and the dots (both
   z-index -1, earlier in the tree) and under everything else. It scrolls
   away with the first screen, as the wash does. */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: -1;
  background: linear-gradient(var(--bg), transparent);
  pointer-events: none;
}
/* Visible only to a keyboard, which is the one way past a sticky bar
   without tabbing through it. */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--ink);
  border: 1px solid var(--hairline);
  text-decoration: none;
  z-index: 20;
}
.skip:focus { left: 16px; }
.bar {
  --bar-content-left: calc(max(16px, (100vw - 1068px) / 2) + 21px);
  position: sticky;
  top: 12px;
  width: calc(100% - 32px);
  max-width: 1068px;
  margin: 12px auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  /* The shadow stays on the bar, not on the backdrop layer, which has the
     same shape. Safari 27.3 beta misplaces a backdrop filter that shares an
     element with a box-shadow and a squircle corner: the blurred region
     shifts down and right, and a band of the page shows through sharp. */
  box-shadow: var(--bar-shadow);
}
/* Sticky already gives the bar a stacking context. Give the material and
   controls explicit, non-negative paint levels: a negative backdrop layer
   depends on the browser's handling of the sticky ancestor's backing layer.
   Neither layer clips the mascot or the language menu. */
.bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid;
  border-color: var(--bar-edge);
  background: var(--bar-sheen), var(--bar-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.bar > .wordmark,
.bar > .bar-links {
  position: relative;
  z-index: 1;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
/* Keeps the bar's layout at the small size while the image inside is
   laid out at the size it is drawn when enlarged. */
.mascot-slot {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
}
.bar-mascot {
  position: absolute;
  /* Centred on the slot's resting width from its left edge, not on the
     slot, so the slot can open and close without moving it. */
  left: 16px;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  /* Resting size: 32 of 120. Scaling down keeps the full resolution of
     the source; scaling up would show an enlarged 32px bitmap. */
  scale: 0.2667;
  /* Not a click target in flight: scaled up there it would cover the page,
     and the wordmark's link would swallow clicks meant for it. Resting in
     the bar, the slot under it takes the click; resting over the hero, it
     takes it itself (below). */
  pointer-events: none;
}
.bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}
.bar-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
}
.bar-links a:hover { color: var(--ink); }
/* The language menu, as on PopTranslate's site: a native disclosure, so it
   needs no script, holding each language by its own name. */
.language-menu { position: relative; }
.language-menu summary { list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.language-trigger:hover,
.language-menu[open] .language-trigger { color: var(--ink); background: var(--bar-button-bg); }
.language-trigger:focus { outline: none; }
.language-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.language-trigger svg { width: 16px; height: 16px; flex: 0 0 auto; }
.language-trigger .chevron { width: 12px; height: 12px; transition: transform 0.2s ease; }
.language-menu[open] .chevron { transform: rotate(180deg); }
.language-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  /* Two columns, so thirteen languages stay a menu rather than a page. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-width: 320px;
  padding: 5px;
  background: var(--glass-menu-bg);
  backdrop-filter: saturate(130%) blur(24px);
  -webkit-backdrop-filter: saturate(130%) blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-glass);
}
.bar-links .language-panel a {
  display: block;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.bar-links .language-panel a:hover,
.bar-links .language-panel a[aria-current="true"] { color: var(--ink); background: var(--bar-button-bg); }
.bar-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--button-bg);
  color: var(--button-ink) !important;
  border: 1px solid var(--button-border);
  font-weight: 500;
  padding: 7px 15px !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 0 var(--button-highlight), var(--shadow-button);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.hero {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 76px 24px 44px;
  text-align: center;
}
/* The App's launch backdrop (AppLogoBackdrop): a faint dot grid centred on
   the mascot, fading out from it, so the space around the character reads
   as deliberate. 16px apart, 1.8px dots at a fifth of the ink, faded over
   480px through half strength, as there. The centre is where the mascot
   starts, 82px into the hero; a dot sits exactly on it. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  /* Never wider than the viewport, so a phone has nothing to pan to; the
     fade's radius is fixed, so a narrow grid is the same grid cropped. */
  --dots-width: min(960px, 100vw);
  top: 82px;
  left: 50%;
  width: var(--dots-width);
  height: 960px;
  margin: -480px 0 0 calc(var(--dots-width) / -2);
  background: radial-gradient(
      circle,
      color-mix(in srgb, var(--ink) var(--dots-ink), transparent) 0.9px,
      transparent 1.4px
    )
    center / 16px 16px;
  pointer-events: none;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  --ripple-band: radial-gradient(
      circle,
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.018)) calc(var(--ripple-r) - 80px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.105)) calc(var(--ripple-r) - 60px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.368)) calc(var(--ripple-r) - 40px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.779)) calc(var(--ripple-r) - 20px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 1)) calc(var(--ripple-r) + 0px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.779)) calc(var(--ripple-r) + 20px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.368)) calc(var(--ripple-r) + 40px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.105)) calc(var(--ripple-r) + 60px),
      rgb(0 0 0 / calc(var(--ripple-fade) * 0.018)) calc(var(--ripple-r) + 80px)
    );
  --ripple-gap: radial-gradient(
      circle,
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.018)) calc(var(--ripple-r) - 80px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.105)) calc(var(--ripple-r) - 60px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.368)) calc(var(--ripple-r) - 40px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.779)) calc(var(--ripple-r) - 20px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 1)) calc(var(--ripple-r) + 0px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.779)) calc(var(--ripple-r) + 20px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.368)) calc(var(--ripple-r) + 40px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.105)) calc(var(--ripple-r) + 60px),
      rgb(0 0 0 / calc(1 - var(--ripple-fade) * 0.018)) calc(var(--ripple-r) + 80px)
    );
}
/* The grid, with a gap where a ripple is passing ... */
.hero::before {
  --dots-ink: 20%;
  -webkit-mask-image: var(--dots-fade), var(--ripple-gap);
  mask-image: var(--dots-fade), var(--ripple-gap);
}
/* ... and the same dots, 1.6 times as strong and pushed 2.4px outwards,
   showing only in it. Invisible until a ripple runs. */
.hero::after {
  --dots-ink: 32%;
  -webkit-mask-image: var(--dots-fade), var(--ripple-band);
  mask-image: var(--dots-fade), var(--ripple-band);
}
.hero {
  --dots-fade: radial-gradient(circle 480px, #000, rgba(0, 0, 0, 0.5) 50%, transparent);
}
/* A ripple, as on the App's Welcome (AppLogoGravity.metal): a Gaussian
   band 40px wide running out from the mascot at 260px/s, fading to
   nothing by 900px. Its front and strength are registered, so they
   interpolate; the band is drawn with nine stops of exp(-k^2). */
@property --ripple-r {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
@property --ripple-fade {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --ripple-push {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
/* As on launch, the grid opens out of the character, a beat behind it.
   Pressing the mascot sends a ripple out from it, as striking the
   character does on the App's Welcome: the press puts the band at the
   centre at full strength, and letting go runs it out to 900px over
   3.46s (260px/s). Each press starts a fresh ripple, as each strike does
   in the App. The state transitions on the hero and both layers inherit
   it, so the band, the gap and the push stay in step. */
@media (prefers-reduced-motion: no-preference) {
  .hero::before,
  .hero::after { animation: dots-spread 900ms cubic-bezier(0.2, 0.8, 0.3, 1) 100ms both; }
  .hero {
    --ripple-r: 900px;
    transition:
      --ripple-r 3.46s linear,
      --ripple-fade 3.46s linear,
      --ripple-push 3.46s linear(0, 0.02 5%, 0.51 12%, 0.7 18%, 0.81 26%, 0.88 36%, 0.93 50%, 0.97 70%, 1);
  }
  body:has(.wordmark:active) .hero {
    --ripple-r: 0px;
    --ripple-fade: 1;
    --ripple-push: 0.04;
    transition: none;
  }
}
/* The push, 2.4px at the band's radius: the layer grows by 1 + 2.4 / r as
   the band runs out (the easing above), held finite under the mascot. */
.hero::after { scale: calc(1 + var(--ripple-push)); }
@keyframes dots-spread {
  from { opacity: 0; scale: 0.3; }
}
.eyebrow {
  margin: 0;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow.centered { text-align: center; margin: 0; }
h1 {
  margin: 16px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  /* Lines of even length, so a wrapped headline never ends on one word. */
  text-wrap: balance;
  /* The gradient only paints inside the box, and a tight line-height lets a
     descender fall below it: with a CJK face setting the baseline, Agent's g
     is cut off. The padding paints it; the margin gives the space back. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background: var(--headline-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 20px auto 0;
  max-width: 580px;
  font-size: 19px;
  color: var(--ink-soft);
  text-wrap: balance;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 32px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--button-border);
  border-radius: 13px;
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 1px 0 var(--button-highlight), var(--shadow-button);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.download-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.bar-button .download-icon { width: 16px; height: 16px; }
.button:hover,
.bar-button:hover { background: var(--button-hover-bg); }
.button:active,
.bar-button:active {
  background: var(--button-active-bg);
  box-shadow: var(--shadow-button-active);
}
.button:focus-visible,
.bar-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.hero-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}
.hero-download .button { margin-top: 0; }
/* A small margin note sketched onto the hero's dot grid beside the download
   button (TSK-12714). Positioned off the button's right edge so the button
   stays dead-centre on the page axis. Responsive geometry and motion offsets
   live in custom properties so desktop, tablet and phone share one keyframe
   and one set of interaction rules. */
.download-callout {
  --callout-x: 0px;
  --callout-y: -64%;
  --callout-rot: -2.5deg;
  --callout-enter-x: -6px;
  --callout-enter-y: -56%;
  --callout-enter-rot: -5deg;
  --callout-hover-x: 3px;
  --callout-hover-y: -68%;
  --callout-hover-rot: -0.8deg;
  --callout-active-x: 0px;
  --callout-active-y: -60%;
  --callout-active-rot: -3.2deg;
  --arrow-transform: none;
  --arrow-hover-transform: translateX(-3px) rotate(3deg);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(var(--callout-x), var(--callout-y)) rotate(var(--callout-rot));
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.2s ease;
}
.download-callout-arrow {
  width: 52px;
  height: 32px;
  margin-top: -2px;
  flex: none;
  color: color-mix(in srgb, var(--accent) 76%, transparent);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transform: var(--arrow-transform);
  transition: color 0.2s ease, transform 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.download-callout-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.download-callout-size {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
/* PopAgent mascot neon highlight on the size number: after the hand-drawn
   callout finishes sketching in, a vivid cyan-violet-pink neon shimmer sweeps
   across the digits and settles into a crisp jewel-toned highlight. */
.download-callout-figure {
  display: inline-block;
  font-weight: 700;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  background: var(--callout-figure-fill);
  background-size: 360% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.25s ease;
}
.download-callout-underline {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -4px;
  width: calc(100% + 4px);
  height: 7px;
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
  transition: stroke 0.2s ease;
}
.download-callout-quip {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .hero-download .button:hover + .download-callout {
    transform: translate(var(--callout-hover-x), var(--callout-hover-y)) rotate(var(--callout-hover-rot));
  }
  .hero-download .button:hover + .download-callout .download-callout-arrow {
    color: var(--accent);
    transform: var(--arrow-hover-transform);
  }
  .hero-download .button:hover + .download-callout .download-callout-figure {
    filter: drop-shadow(0 0 6px rgba(255, 46, 151, 0.35)) drop-shadow(0 0 10px rgba(0, 194, 255, 0.3));
  }
  .hero-download .button:hover + .download-callout .download-callout-underline {
    stroke: color-mix(in srgb, var(--accent) 85%, transparent);
  }
  .hero-download .button:hover + .download-callout .download-callout-quip {
    color: var(--ink-soft);
  }
}
.hero-download .button:active + .download-callout {
  transform: translate(var(--callout-active-x), var(--callout-active-y)) rotate(var(--callout-active-rot)) scale(0.98);
}
@media (max-width: 760px) {
  .download-callout { left: calc(100% + 10px); }
  .download-callout-arrow { width: 44px; height: 28px; }
}
/* On phones, lift the sketched note into the airy gap above the download
   button so the curved arrow hooks down onto the CTA while keeping the two
   subnotes beneath completely uncluttered. */
@media (max-width: 640px) {
  .hero-download { margin-top: 56px; }
  .download-callout {
    --callout-x: -14%;
    --callout-y: 0px;
    --callout-rot: -2deg;
    --callout-enter-x: -14%;
    --callout-enter-y: -8px;
    --callout-enter-rot: -4deg;
    --callout-hover-x: -14%;
    --callout-hover-y: -2px;
    --callout-hover-rot: -1deg;
    --callout-active-x: -14%;
    --callout-active-y: 1px;
    --callout-active-rot: -2.5deg;
    --arrow-transform: rotate(-28deg);
    --arrow-hover-transform: rotate(-24deg) translateY(2px);
    left: 50%;
    top: auto;
    bottom: calc(100% + 5px);
    gap: 4px;
  }
  .download-callout-arrow {
    width: 38px;
    height: 24px;
    margin-top: 6px;
  }
  .download-callout-size { font-size: 13.5px; }
  .download-callout-quip { display: none; }
}
/* Motion choreography: staggered above-the-fold arrival handing off to the
   sketched download callout, plus below-the-fold scroll reveals armed
   progressively by site.js only for elements still beneath the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: hero-rise 760ms var(--ease-out-expo) 100ms both; }
  .hero .lede { animation: hero-rise 740ms var(--ease-out-expo) 240ms both; }
  .hero .hero-download { animation: hero-rise 720ms var(--ease-out-expo) 380ms both; }
  .hero .download-arch { animation: hero-rise 680ms var(--ease-out-expo) 500ms both; }
  .shot .window { animation: window-rise 760ms var(--ease-out-expo) 260ms both; }
  .download-callout { animation: callout-settle 680ms var(--ease-out-expo) 820ms both; }
  .download-callout-arrow path,
  .download-callout-underline path {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
  }
  .download-callout-arrow .arrow-shaft {
    animation: callout-draw 560ms cubic-bezier(0.3, 0, 0.2, 1) 900ms both;
  }
  .download-callout-underline path {
    animation: callout-draw 500ms ease-out 1060ms both;
  }
  .download-callout-arrow .arrow-head {
    animation: callout-draw 320ms ease-out 1260ms both;
  }
  .download-callout-figure {
    animation: callout-neon-flash 1300ms cubic-bezier(0.22, 1, 0.36, 1) 1620ms both;
  }
  .reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 760ms var(--ease-out-expo) var(--reveal-delay, 0ms),
      transform 820ms var(--ease-out-expo) var(--reveal-delay, 0ms);
  }
  .reveal-pending.is-revealed {
    opacity: 1;
    transform: none;
  }
  .providers.reveal-pending {
    opacity: 1;
    transform: none;
  }
  .providers.reveal-pending li {
    opacity: 0;
    transform: translateY(11px) scale(0.95);
    transition:
      opacity 580ms var(--ease-out-expo) var(--reveal-delay, 0ms),
      transform 620ms var(--ease-out-expo) var(--reveal-delay, 0ms);
  }
  .providers.reveal-pending.is-revealed li {
    opacity: 1;
    transform: none;
  }
  .story-media.reveal-pending .footprint-bar {
    width: 0;
    transition: width 1050ms var(--ease-out-expo) 320ms;
  }
  .story-media.reveal-pending .footprint-row-active .footprint-bar {
    transition-delay: 480ms;
  }
  .story-media.reveal-pending.is-revealed .footprint-bar {
    width: var(--share, 50%);
  }
  @media (max-width: 720px) {
    .reveal-pending:not(.providers) {
      --reveal-delay: 0ms !important;
    }
  }
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes window-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
}
@keyframes callout-settle {
  from {
    opacity: 0;
    transform: translate(var(--callout-enter-x), var(--callout-enter-y)) rotate(var(--callout-enter-rot));
  }
}
@keyframes callout-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
@keyframes callout-neon-flash {
  0% {
    background-position: 100% 50%;
    filter: none;
    transform: scale(1);
  }
  42% {
    background-position: 52% 50%;
    filter:
      drop-shadow(0 0 6px rgba(0, 200, 255, 0.65))
      drop-shadow(0 0 13px rgba(255, 46, 151, 0.55));
    transform: scale(1.09);
  }
  62% {
    background-position: 42% 50%;
    filter:
      drop-shadow(0 0 8px rgba(182, 76, 255, 0.6))
      drop-shadow(0 0 15px rgba(255, 46, 151, 0.5));
    transform: scale(1.06);
  }
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 4px rgba(139, 61, 255, 0.16));
    transform: scale(1);
  }
}
.note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.download-arch {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
.download-arch + .note { margin-top: 6px; }
.download-arch a {
  color: var(--accent);
  text-decoration: none;
}
.download-arch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-arch a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.shot { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.window {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-solid);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-window);
}
.window.video-frame {
  aspect-ratio: 16 / 10;
}
.features { max-width: 1020px; margin: 0 auto; padding: 104px 24px 0; }
/* The bar is sticky, so an anchor must stop below it. */
.capabilities { scroll-margin-top: 72px; }
.grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
/* System Settings–style badge matching MacSettingsSidebarIcon in the App:
   a white glyph on a per-capability macOS tint. */
.bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--ink-ghost);
  color: #ffffff;
  margin-bottom: 18px;
}
.bullet svg {
  width: 19px;
  height: 19px;
  display: block;
}
.bullet-sessions { background: linear-gradient(180deg, #b5966f 0%, #987851 100%); }
.bullet-extensions { background: linear-gradient(180deg, #bf67eb 0%, #9f42cf 100%); }
.bullet-automations { background: linear-gradient(180deg, #6e6ce8 0%, #4e4bc7 100%); }
.bullet-remote { background: linear-gradient(180deg, #34d158 0%, #20ad40 100%); }
.bullet-icloud { background: linear-gradient(180deg, #42b9f0 0%, #1694d4 100%); }
.bullet-skills { background: linear-gradient(180deg, #1ed4cb 0%, #00aba3 100%); }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
/* Not shipped yet: settled quietly inside the card header beside the icon
   and recessed slightly from the shipped cards, without floating over the edge. */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head .bullet {
  flex: none;
  margin-bottom: 0;
}
.card-soon {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bar);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink-faint);
  white-space: nowrap;
}
.card.soon {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: none;
}
/* What PopAgent is, in five parts between the shot and the prices
   (TSK-12409): a centred head over two videos, text beside a picture with
   the sides alternating, and a closing line. */
.story {
  max-width: 1020px;
  margin: 0 auto;
  padding: 120px 24px 0;
  scroll-margin-top: 72px;
}
.story h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.story-head,
.story-privacy { text-align: center; }
.story-pair {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.story-media { margin: 0; }
.story-media figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  text-wrap: balance;
}
/* Where a video or a picture goes, in its final shape. */
.media-slot,
.story-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.shot-video,
.story-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: transparent;
  transition: opacity 0.28s ease;
}
/* Demo clips render a same-origin poster beneath the video so the frame is
   sharp immediately even when R2 is slow or unreachable; while the poster
   itself loads, a soft macOS window skeleton sits behind it instead of a flat
   white box. site.js drives two mutually exclusive state attributes:
   `data-poster="ready|failed"` and `data-video="pending|slow|ready|ended|failed"`.
   Without script both attributes stay unset and native `<video>` works as-is. */
.video-frame {
  position: relative;
  background: linear-gradient(155deg, #e2f0fc 0%, #edf5fc 52%, #d8e9fa 100%);
}
.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5% 5.2%;
  overflow: hidden;
  pointer-events: none;
}
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 24%,
    rgba(255, 255, 255, 0.52) 48%,
    transparent 72%
  );
  transform: translateX(-100%);
  animation: video-shimmer 1.8s ease-in-out infinite;
}
.video-frame[data-poster="ready"] .video-placeholder::after,
.video-frame[data-poster="failed"] .video-placeholder::after,
.video-frame[data-video="ready"] .video-placeholder::after,
.video-frame[data-video="ended"] .video-placeholder::after {
  animation: none;
  display: none;
}
@keyframes video-shimmer {
  to { transform: translateX(100%); }
}
.video-skeleton-window {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 19% 46% 35%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 44px -22px rgba(22, 32, 54, 0.16);
}
.video-skeleton-sidebar {
  padding: 12% 11%;
  display: flex;
  flex-direction: column;
  gap: 10%;
  background: rgba(244, 247, 252, 0.82);
  border-right: 1px solid rgba(22, 32, 54, 0.06);
}
.video-skeleton-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 6%;
}
.video-skeleton-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(22, 32, 54, 0.14);
}
.video-skeleton-main {
  padding: 5.5% 6.5%;
  display: flex;
  flex-direction: column;
  gap: 5.5%;
}
.video-skeleton-preview {
  padding: 12% 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 247, 252, 0.48);
  border-left: 1px solid rgba(22, 32, 54, 0.05);
}
.video-skeleton-card {
  width: 78%;
  aspect-ratio: 1 / 1.02;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(64, 134, 244, 0.22), rgba(114, 178, 255, 0.16));
}
.video-skeleton-popover {
  width: 38%;
  height: 68%;
  padding: 4.5% 4%;
  display: flex;
  flex-direction: column;
  gap: 11%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px -18px rgba(22, 32, 54, 0.16);
}
.video-skeleton-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 32, 54, 0.08);
}
.video-skeleton-sidebar .video-skeleton-bar:nth-child(2) { width: 66%; }
.video-skeleton-sidebar .video-skeleton-bar:nth-child(3) { width: 82%; }
.video-skeleton-sidebar .video-skeleton-bar:nth-child(4) { width: 54%; }
.video-skeleton-sidebar .video-skeleton-bar:nth-child(5) { width: 74%; }
.video-skeleton-main .video-skeleton-title {
  width: 34%;
  height: 10px;
  margin-bottom: 2%;
  background: rgba(22, 32, 54, 0.11);
}
.video-skeleton-main .video-skeleton-bar:nth-child(3) { width: 72%; }
.video-skeleton-main .video-skeleton-bar:nth-child(4) { width: 86%; }
.video-skeleton-main .video-skeleton-bar:nth-child(5) { width: 58%; }
.video-skeleton-popover .video-skeleton-bar:nth-child(2) { width: 88%; }
.video-skeleton-popover .video-skeleton-bar:nth-child(3) { width: 76%; }
.video-skeleton-popover .video-skeleton-bar:nth-child(4) { width: 62%; }
.video-skeleton-bubble,
.video-skeleton-pill {
  display: block;
  width: 58%;
  height: 22px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(0, 114, 163, 0.11);
}
.video-skeleton-pill {
  height: 14px;
}
.video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.video-frame[data-poster="failed"] .video-poster {
  opacity: 0;
  visibility: hidden;
}
.video-frame[data-video]:not([data-video="ready"]):not([data-video="ended"]) :is(.shot-video, .story-video) {
  opacity: 0;
}
.video-frame[data-video="failed"] :is(.shot-video, .story-video) {
  pointer-events: none;
}
.video-frame[data-video="ended"] :is(.shot-video, .story-video),
.video-frame[data-video="failed"]:not([data-poster="failed"]) {
  cursor: pointer;
}
.video-loading,
.video-replay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bar-sheen), rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 4px 16px -4px rgba(22, 32, 54, 0.24), 0 0 0 1px rgba(22, 32, 54, 0.08);
  color: #162036;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.22s,
    background-color 0.15s ease;
}
.video-loading {
  z-index: 3;
}
.video-loading svg {
  width: 16px;
  height: 16px;
  display: block;
}
.video-frame[data-video="slow"]:not([data-poster="failed"]) .video-loading {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
}
.video-frame[data-video="slow"]:not([data-poster="failed"]) .video-loading svg {
  animation: video-spin 0.9s linear infinite;
}
@keyframes video-spin {
  to { transform: rotate(360deg); }
}
.video-replay {
  z-index: 4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-replay svg {
  width: 17px;
  height: 17px;
  display: block;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.video-frame[data-video="ended"] .video-replay,
.video-frame[data-video="failed"]:not([data-poster="failed"]) .video-replay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s,
    background-color 0.15s ease;
}
.video-replay:hover { background: var(--bar-sheen), #ffffff; }
.video-replay:hover svg { transform: rotate(35deg); }
.video-replay:active { transform: scale(0.94); }
.video-replay:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-fallback[hidden] {
  display: none;
}
.video-fallback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--bar-sheen), rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 14px 36px -18px rgba(22, 32, 54, 0.28), 0 0 0 1px rgba(22, 32, 54, 0.06);
  text-align: center;
}
.video-fallback-note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.video-fallback-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--button-highlight), var(--shadow-button);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.video-fallback-retry:hover { background: var(--button-hover-bg); }
.video-fallback-retry:active { background: var(--button-active-bg); transform: scale(0.97); }
.video-fallback-retry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .video-skeleton-window,
  .video-skeleton-popover { border-radius: 10px; }
  .video-skeleton-dots { gap: 3px; }
  .video-skeleton-dots span { width: 5px; height: 5px; }
  .video-skeleton-bar { height: 5px; }
  .video-skeleton-main .video-skeleton-title { height: 6px; }
  .video-skeleton-bubble { height: 14px; }
  .video-skeleton-pill { height: 10px; }
  .video-skeleton-card { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-placeholder::after {
    animation: none;
    display: none;
  }
  .shot-video,
  .story-video,
  .video-poster,
  .video-loading,
  .video-replay,
  .video-replay svg { transition: none; }
  .video-loading { display: none; }
}
/* Measured footprint card for #native (TSK-12409): HTML rather than an image,
   so every figure and label translates cleanly and reads at Retina sharpness. */
.footprint-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  aspect-ratio: 16 / 10;
  padding: 28px 30px 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.footprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footprint-eyebrow {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.footprint-stack {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bar);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.footprint-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footprint-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footprint-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.footprint-meta dt {
  font-size: 15.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.footprint-value {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}
.footprint-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 32, 54, 0.07);
  overflow: hidden;
}
.footprint-bar {
  display: block;
  width: var(--share, 50%);
  height: 100%;
  border-radius: inherit;
  background: rgba(22, 32, 54, 0.34);
}
.footprint-row-active .footprint-bar {
  background: linear-gradient(90deg, #32a9e6, var(--accent));
}
.footprint-foot {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}
.footprint-disk {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 20px;
  border-right: 1px solid var(--hairline);
}
.footprint-disk-value {
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.footprint-disk-label {
  font-size: 12.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.footprint-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}
@media (max-width: 560px) {
  .footprint-card {
    aspect-ratio: auto;
    padding: 22px 20px;
  }
  .footprint-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .footprint-disk {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding-right: 0;
    border-right: 0;
  }
}
.story-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.story-split h2 { font-size: clamp(28px, 3vw, 36px); }
.story-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.story-reverse > .story-text { order: 2; }
.story-text p { margin: 18px 0 0; font-size: 18px; color: var(--ink-soft); }
.providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.providers li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 15px;
  white-space: nowrap;
}
.providers .providers-more {
  border-style: dashed;
  background: none;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .story { padding-top: 88px; }
  .story-split,
  .story-reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story-reverse > .story-text { order: 0; }
  .story-pair { grid-template-columns: minmax(0, 1fr); }
}
.pricing {
  max-width: 1020px;
  margin: 0 auto;
  padding: 112px 24px 0;
  /* The bar is sticky, so an anchor must stop below it. */
  scroll-margin-top: 72px;
}
.pricing h1,
.pricing h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.025em;
}
/* Its own page: the headline is the page's. The questions follow it and carry
   the bottom room, as they do on the home page. */
.pricing-page { padding: 76px 24px 0; }
/* The home page shows the tiers; the terms behind them are a page away. The
   way there is a link, not a fourth button: the cards' buttons are the
   section's actions, and one of them is the recommendation. */
.pricing-more { margin: 36px 0 0; text-align: center; }
.more-link {
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
}
.more-link::after { content: "\00a0\203a" / ""; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.section-lede {
  margin: 14px auto 0;
  max-width: 520px;
  text-align: center;
  color: var(--ink-soft);
  text-wrap: balance;
}
.tiers {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  align-items: start;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
/* The featured tier is the recommendation, so it is lifted rather than
   merely tinted. */
.tier.featured {
  background: var(--surface-solid);
  border: 1.5px solid var(--ink-ghost);
  box-shadow: var(--shadow-featured);
}
.badge {
  position: absolute;
  top: -11px;
  left: 28px;
  padding: 4px 11px;
  border-radius: 980px;
  background: var(--ink-soft);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tier.featured .badge { background: var(--accent-pop); color: #ffffff; }
.tier h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.devices {
  margin: 4px 0 0;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.amount {
  margin: 20px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.now { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.was { font-size: 18px; color: var(--ink-faint); text-decoration-thickness: 1.5px; }
.off {
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--bar-button-bg);
  border: 1px solid var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.renewal {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
/* What a licence is measured against: beside the tiers, quieter than them. */
.free-tier {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 3fr;
  gap: 10px 28px;
  padding: 24px 28px;
  border-radius: 22px;
  border: 1px solid var(--hairline);
}
.free-tier h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.free-tier > p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 640px) {
  .free-tier { grid-template-columns: 1fr; }
}
/* One trial for every tier, so one button under the cards. */
.pricing-cta { margin-top: 8px; text-align: center; }
/* Each card has its own button, full width so the three line up. */
.tier-purchase { margin-top: 24px; width: 100%; }
/* One strong action per view: beside a solid button, the others are quiet --
   the tiers that are not the recommendation, and the trial when the cards
   can be bought from. */
.button.button-quiet {
  background: var(--bar-button-bg);
  border-color: var(--hairline);
  color: var(--ink);
  box-shadow: none;
}
.button.button-quiet:hover,
.button.button-quiet:active { background: var(--button-quiet-hover-bg); box-shadow: none; }
.purchase-page { max-width: 560px; margin: 0 auto; padding: 76px 24px 100px; }
.purchase-page h1 { margin: 0 0 28px; text-align: center; font-size: clamp(30px, 3.6vw, 40px); text-wrap: balance; }
.purchase-card { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--hairline); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-card); }
.purchase-card h2 { margin: 0; font-size: 22px; text-wrap: balance; }
.purchase-card > p:not(.amount, .devices) { color: var(--ink-soft); }
.purchase-form { display: grid; gap: 18px; margin-top: 24px; }
.purchase-field { display: grid; gap: 8px; }
.purchase-field label { font-size: 14px; font-weight: 600; }
.purchase-field input { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--ink-ghost); border-radius: 10px; background: var(--surface-solid); color: var(--ink); font: inherit; font-size: 16px; }
.purchase-field input:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: 2px; }
.purchase-form .button { width: 100%; margin: 0; cursor: pointer; font-family: inherit; }
.purchase-terms { margin: 0; font-size: 13px; color: var(--ink-faint); }
.purchase-page .errorlist { margin: 0; padding-left: 20px; font-size: 14px; }
.purchase-errors, .purchase-field .errorlist { color: var(--ink); }
.purchase-field input[aria-invalid="true"] { outline: 2px solid var(--ink-soft); outline-offset: 2px; }
.purchase-back { text-align: center; font-size: 14px; }
/* After checkout: what to do next, one numbered step at a time. */
.purchase-card > p.purchase-lede { margin: 0; color: var(--ink); text-wrap: pretty; }
.purchase-steps { display: grid; gap: 22px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hairline); list-style: none; counter-reset: purchase-step; }
.purchase-steps li { position: relative; display: grid; gap: 4px; padding-left: 44px; counter-increment: purchase-step; }
.purchase-steps li::before { content: counter(purchase-step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bar-button-bg); border: 1px solid var(--hairline); font-size: 14px; font-weight: 600; color: var(--ink); }
.purchase-steps h2 { margin: 0; font-size: 17px; line-height: 28px; }
.purchase-steps p { margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.purchase-steps strong { color: var(--ink); font-weight: 600; }
.purchase-steps .button { justify-self: start; margin: 10px 0 0; }
.purchase-steps .download-arch { margin: 10px 0 0; color: var(--ink-faint); }
.purchase-steps .download-arch a { color: var(--accent); }
.purchase-help { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-faint); text-wrap: pretty; }
.purchase-page a:not(.button) { color: var(--ink-soft); text-underline-offset: 3px; }
/* A buyer's licences (TSK-12493): the purchase page's card, one per licence. */
.license-page { max-width: 640px; }
.license-card + .license-card { margin-top: 20px; }
.license-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.license-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.founding-surprise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(110, 198, 246, 0.12), rgba(155, 133, 247, 0.08) 52%, rgba(252, 139, 186, 0.13));
  border: 1px solid rgba(110, 198, 246, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 18px -8px rgba(155, 133, 247, 0.22);
}
.founding-surprise-mark { flex: 0 0 auto; width: 38px; height: 38px; }
.founding-surprise-mark .founding-seal { width: 38px; height: 38px; filter: drop-shadow(0 4px 8px rgba(22, 32, 54, 0.16)); }
.founding-surprise-body { display: grid; gap: 4px; min-width: 0; }
.founding-surprise-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.founding-surprise-body p.founding-surprise-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.scheme-dark .founding-surprise {
  background: linear-gradient(135deg, rgba(110, 198, 246, 0.16), rgba(155, 133, 247, 0.13) 52%, rgba(252, 139, 186, 0.18));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.founding-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(110, 198, 246, 0.12), rgba(155, 133, 247, 0.1) 50%, rgba(252, 139, 186, 0.13));
  border: 1px solid rgba(110, 198, 246, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 10px rgba(155, 133, 247, 0.1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.founding-seal { width: 17px; height: 17px; flex: 0 0 auto; display: block; }
.founding-pill-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-ghost); opacity: 0.7; }
.founding-pill-num {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}
.scheme-dark .founding-pill {
  background: linear-gradient(135deg, rgba(110, 198, 246, 0.18), rgba(155, 133, 247, 0.16) 50%, rgba(252, 139, 186, 0.2));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.scheme-dark .founding-pill-num { color: #ffe08e; }
.license-card h3 { margin: 28px 0 10px; font-size: 15px; }
.license-notice { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--bar-button-bg); color: var(--ink); font-size: 15px; }
.license-facts { display: grid; gap: 8px; margin: 18px 0 0; }
.license-facts > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
.license-facts dt { color: var(--ink-soft); }
.license-facts dd { margin: 0; font-weight: 600; text-align: end; }
.license-renewal { display: grid; gap: 10px; margin-top: 22px; }
.license-renewal .button { margin: 0; }
.license-macs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.license-macs li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.license-macs li > div { display: grid; gap: 2px; min-width: 0; }
.license-mac-detail { font-size: 13px; color: var(--ink-faint); }
.license-macs a { flex: none; font-size: 14px; }
.license-mac-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.license-sign-out { margin: 28px 0 0; }
.license-page .purchase-form + .purchase-terms { margin-top: 14px; }
.license-tag { padding: 2px 8px; border-radius: 7px; background: var(--bar-button-bg); border: 1px solid var(--hairline); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.license-inline-form { margin-top: 18px; }
.link-button { padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.pricing-cta .note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.volume {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-faint);
}
/* The same link as the home page's way to this page, at the sentence's size. */
.volume .more-link { margin-left: 7px; font-size: inherit; }
.included {
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
}
.included h3 {
  margin: 0 0 14px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.included ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 28px;
}
.included li { position: relative; padding-left: 24px; font-size: 15px; }
/* What a licence does not include sits with what it does: the question a buyer
   asks first is whether the AI costs extra. */
.excluded {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 14.5px;
}
.included li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--ink-ghost);
}
/* Louder than renewal, on purpose: buy-once mistaken for a
   subscription costs the sale outright. */
.perpetual-note {
  margin-top: 36px;
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  text-align: center;
}
.perpetual-heading {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.perpetual-note p:last-child {
  margin: 0 auto;
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 15px;
}
.notes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.notes article {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
}
.notes h3,
.notes h4 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.01em; }
.notes p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; }
.notes p:last-child { margin: 0; }
.faq {
  max-width: 820px;
  margin: 0 auto;
  /* The last block before the footer, so it carries the bottom room. */
  padding: 104px 24px 96px;
  scroll-margin-top: 72px;
}
.faq h2 {
  margin: 0 0 36px;
  text-align: center;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.025em;
}
.faq-more { margin: 28px 0 0; text-align: center; font-size: 15px; }
.faq-more a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}
.faq-more a:hover { text-decoration-color: currentColor; }
.questions {
  border-top: 1px solid var(--hairline);
}
.questions details {
  border-bottom: 1px solid var(--hairline);
}
.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
/* A drawn marker rather than the platform triangle, so it can rotate
   and match the rest of the page. */
.questions summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--ink-faint);
  border-bottom: 1.8px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px);
}
.questions details[open]:not(.is-shutting) summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.questions summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.questions details p {
  margin: 0;
  padding: 0 4px 22px;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 15.5px;
}
/* Keep native details semantics. The grid row follows the answer's natural
   height, including translated copy and wrapping at narrow widths. Older
   browsers retain the native disclosure without a transition. */
@supports selector(::details-content) {
  .questions details::details-content {
    display: grid;
    grid-template-rows: 0fr;
  }
  .questions details[open]::details-content {
    grid-template-rows: 1fr;
  }
  /* site.js folds an answer while it is still open, then shuts it: Safari
     stops drawing a disclosure's content the moment it shuts. */
  .questions details.is-shutting::details-content {
    grid-template-rows: 0fr;
  }
  .questions .faq-answer {
    min-height: 0;
    overflow: hidden;
  }
  @media (prefers-reduced-motion: no-preference) {
    .questions details::details-content {
      transition: grid-template-rows 240ms ease,
                  content-visibility 240ms allow-discrete;
    }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .questions summary::after { transition: transform 240ms ease; }
  /* Shutting, the row's height falls faster than its fr value, so the
     curve starts slowly to keep the fold even; the marker turns with it. */
  .questions details:is(:not([open]), .is-shutting)::details-content,
  .questions details:is(:not([open]), .is-shutting) summary::after {
    transition-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4);
  }
}
/* The mascot starts over the hero and settles into the bar as the
   reader scrolls. One element, not a cross-fade between two: the
   landing place is its own resting position, so the end state is
   exact at any width and nothing has to be computed to reach it.
   Only the starting offset is derived, and if that is a few pixels
   out on some viewport the mascot merely starts slightly off centre.

   Enhancement only. Without scroll timelines, or when the reader asks
   for less motion, the mascot simply sits in the bar and the hero has
   no gap reserved for it. */
@media (prefers-reduced-motion: no-preference) {
  /* Pressing the wordmark hops too. :active ends on release, so the
     delayed transition holds the press for one whole hop. */
  .wordmark { transition: --mascot-pressed 0s 650ms; }
  .wordmark:active { --mascot-pressed: 1; transition: none; }
  @container style(--mascot-pressed: 1) {
    .bar-mascot { animation: mascot-hops 650ms linear; }
  }
  @supports (animation-timeline: scroll()) {
    /* Only a page with a hero has somewhere for it to start. */
    body:has(.hero) .bar-mascot {
      animation: mascot-lands linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 180px;
    }
    /* While the mascot is over the hero the wordmark sits at the bar's
       edge, and it steps aside as the mascot comes home. The second step
       marks the mascot as home, for the settle below. */
    body:has(.hero) .mascot-slot {
      animation:
        mascot-makes-room linear both,
        mascot-docked step-end both;
      animation-timeline: scroll(root block), scroll(root block);
      animation-range: 0 180px, 179px 180px;
    }
    /* Room for the mascot above the headline, and about 40px between them. */
    .hero { padding-top: 152px; }

    /* A scrubbed animation cannot bounce on its own: it stops when the
       scroll stops. So reaching the top starts a timed hop as well, the
       one AppLogo plays. The hop moves `transform`, which the landing
       leaves alone. A scroll-state query spots the top where it exists.
       Safari has none, so there the slot's scrubbed step says so and a
       style query reads it. With neither, the mascot still arcs home and
       does not hop. */
    @supports (container-type: scroll-state) {
      html { container-type: scroll-state; }
      @container not scroll-state(scrollable: top) {
        body:has(.hero) .bar-mascot {
          pointer-events: auto;
          animation:
            mascot-lands linear both,
            mascot-hops 650ms linear;
          animation-timeline: scroll(root block), auto;
          animation-range: 0 180px, normal;
        }
      }
    }
    @supports not (container-type: scroll-state) {
      body:has(.hero) .mascot-slot {
        animation:
          mascot-makes-room linear both,
          mascot-docked step-end both,
          mascot-at-top step-end both;
        animation-timeline: scroll(root block), scroll(root block), scroll(root block);
        animation-range: 0 180px, 179px 180px, 0 1px;
      }
      @container style(--mascot-at-top: 1) {
        body:has(.hero) .bar-mascot {
          pointer-events: auto;
          animation:
            mascot-lands linear both,
            mascot-hops 650ms linear;
          animation-timeline: scroll(root block), auto;
          animation-range: 0 180px, normal;
        }
      }
    }

    /* The scrubbed landing stops dead when it reaches the bar, so the
       mascot settles into its seat: a quick swell and give, in place.
       Quieter than the hop at the top, because the reader is on the way
       down the page. */
    @container style(--mascot-docked: 1) {
      body:has(.hero) .bar-mascot {
        animation:
          mascot-lands linear both,
          mascot-settles 420ms ease-in-out;
        animation-timeline: scroll(root block), auto;
        animation-range: 0 180px, normal;
      }
    }

    /* The press, on top of the landing. The hop is listed twice because
       one already finished at the top would not play again. */
    @container style(--mascot-pressed: 1) {
      body:has(.hero) .bar-mascot {
        animation:
          mascot-lands linear both,
          mascot-hops 650ms linear,
          mascot-hops 650ms linear;
        animation-timeline: scroll(root block), auto, auto;
        animation-range: 0 180px, normal, normal;
      }
    }
  }
}
@property --mascot-pressed {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
@property --mascot-docked {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
@keyframes mascot-docked {
  from { --mascot-docked: 0; }
  to { --mascot-docked: 1; }
}
@keyframes mascot-settles {
  0% { transform: none; }
  35% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: none; }
}
@property --mascot-at-top {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
@keyframes mascot-at-top {
  from { --mascot-at-top: 1; }
  to { --mascot-at-top: 0; }
}
/* No room until the mascot is most of the way back, then the wordmark
   eases over. The negative margin takes back the wordmark's gap. */
@keyframes mascot-makes-room {
  from, 45% {
    width: 0;
    margin-right: -9px;
    animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  }
  to {
    width: 32px;
    margin-right: 0;
  }
}
/* Curved rather than straight: it falls out of the bar first and swings to
   the centre late, on the way home. The eased segments are read backwards
   when scrolling up, so the speed gathers towards the hero. */
@keyframes mascot-lands {
  from {
    /* From the bar's left edge to the middle of the viewport, and
       down into the hero. 16px is half the mascot. */
    translate: calc(50vw - var(--bar-content-left) - 16px) 124px;
    scale: 1;
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  55% {
    translate: calc((50vw - var(--bar-content-left) - 16px) * 0.35) 86px;
    scale: 0.56;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.4, 1);
  }
  to {
    translate: 0 0;
    scale: 0.2667;
  }
}
/* AppLogo's hop: crouch, stretch on the way up, squash on landing, settle.
   The stops are its keyframe durations over 0.65s, ending in a small
   rebound that stands in for its closing spring.

   Squashed against its feet, but without moving `transform-origin`: that
   origin is also the landing's `scale`, so an origin left at the feet
   draws the docked mascot 44px under the bar. Firefox has no scroll-state
   query and does not re-evaluate a style query when a scroll-driven
   animation changes the property it reads, so a rule that set the origin
   at the top stayed matched all the way down. Instead each squash is
   paired with the shift that keeps the bottom edge in place: half the
   120px image times (1 - y scale), in the image's own units, so it holds
   at any landing scale. Every stop lists the same functions, so each one
   interpolates on its own. */
@keyframes mascot-hops {
  0% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: ease-in-out;
  }
  15% {
    transform: translateY(8.4px) scale(1.14, 0.86);
    animation-timing-function: ease-out;
  }
  37% {
    transform: translateY(-18.8px) scale(0.92, 1.08);
    animation-timing-function: ease-in-out;
  }
  46% {
    transform: translateY(-18px) scale(1, 1);
    animation-timing-function: ease-in;
  }
  72% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: ease-out;
  }
  80% {
    transform: translateY(6px) scale(1.1, 0.9);
    animation-timing-function: ease-out;
  }
  91% {
    transform: translateY(-1.2px) scale(0.98, 1.02);
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

/* The press page. Plates are the brand's own colours in either palette: a logo
   is shown on the background it is made for, whatever the page around it. */
.press-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.press-guidelines { color: var(--ink-soft); font-size: 15px; }
.press-guidelines:hover { color: var(--ink); }
.press-section { margin-top: 64px; }
.press { padding-bottom: 88px; }
.press-actions .button { margin: 0; }
.press-section h2 { margin: 0; font-size: 26px; line-height: 1.25; text-align: left; }
.press-section h3 { margin: 26px 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.press-section > p { margin: 10px 0 0; color: var(--ink-soft); text-wrap: pretty; }
.press-section a { color: var(--accent); }
.press-copy {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  text-wrap: pretty;
  -webkit-user-select: all;
  user-select: all;
}
.press-section > p.press-copy { color: var(--ink); margin: 0; }
.press-logos {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.press-section a.press-logo { color: var(--ink); text-decoration: none; font-size: 14px; }
.press-logo:hover .press-label { text-decoration: underline; }
.press-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 26px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}
.press-plate-light { background: #f4f7fc; }
.press-plate-dark { background: #162036; }
/* An icon brings its own plate, so it sits on a neutral to show its shape. */
.press-plate:has(.press-icon) { background: #c9ced9; }
.press-plate img { display: block; max-width: 100%; max-height: 100%; }
.press-plate img.press-icon { border-radius: 22%; }
.press-format { color: var(--ink-faint); font-size: 12.5px; }
.press-colours {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.press-colour {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 120px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  font-size: 14px;
}
.press-colour b { font-weight: 600; }
.press-copy-inline {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  -webkit-user-select: all;
  user-select: all;
}
.press-rules { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.press-rules li { margin-bottom: 6px; text-wrap: pretty; }

.foot {
  border-top: 1px solid var(--hairline);
  padding: 26px max(24px, calc((100% - 1020px) / 2)) 34px;
}
.foot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot p { margin: 0; color: var(--ink-faint); font-size: 13.5px; }
.foot .foot-colophon {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.foot-colophon-mark {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.84;
}
.foot-link { color: inherit; }
.foot-link:hover { color: var(--ink); }
.foot-studio {
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.foot-studio:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot-studio:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.social-links { display: flex; align-items: center; gap: 4px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--ink-faint);
  transition: color 0.15s ease, background 0.15s ease;
}
.social svg { width: 17px; height: 17px; display: block; }
.social:hover { color: var(--ink); background: var(--bar-button-bg); }
.social:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  /* Stacked, so neither the notice nor the marks are cramped. */
  .foot-main { flex-direction: column; justify-content: center; text-align: center; }
  .foot .foot-colophon { display: block; text-align: center; }
  .foot-colophon-mark { display: inline-block; vertical-align: -3px; margin-right: 6px; }
}
/* The bar never wraps, so it sheds parts before it overflows, the widest
   language first: with every part, Brazilian Portuguese needs 664px. Below
   700px the menu shows only the globe; it still names each language. */
@media (max-width: 700px) {
  .language-trigger .language-name,
  .language-trigger .chevron { display: none; }
}
/* The bar's menu, for screens too narrow for its links. A popover in the
   top layer, so neither the bar's backdrop filter nor the page clips it.
   It hangs from the bar by anchor positioning; a browser without that
   places it from the bar's measured top and height instead. */
.menu-trigger { display: none; }
.bar-icon { display: none; }
.site-menu { display: none; }
@media (max-width: 600px) {
  .bar { --bar-top: 12px; --bar-height: 58px; --bar-inset: 16px; anchor-name: --site-bar; }
  /* Below 600px the bar keeps only the wordmark and the menu; the links and
     the languages move into the menu. Download goes too: a phone cannot run
     the Mac App, and the hero keeps its own button. */
  .bar-links > a,
  .bar-links > .language-menu { display: none; }
  /* In their place, icons, as on Apple's own site: Pricing as a tag and the
     languages as the globe, each a 36px target beside the menu button. The
     menu still lists every link and language. */
  .bar-links > .language-menu { display: block; }
  .bar-links > a.bar-icon,
  .language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 9px;
    -webkit-tap-highlight-color: transparent;
  }
  .bar-links > a.bar-icon[aria-current="page"] { color: var(--ink); }
  .bar-links > a.bar-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .bar-icon svg,
  .language-trigger svg { width: 21px; height: 21px; }
  .menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink-soft);
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-trigger:hover,
  .bar:has(.site-menu:popover-open:not(.is-closing)) .menu-trigger { color: var(--ink); background: var(--bar-button-bg); }
  .menu-trigger:focus { outline: none; }
  .menu-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menu-trigger svg { width: 22px; height: 22px; overflow: visible; }
  .menu-trigger path { transition: transform 0.2s ease; }
  /* The two lines cross into a close mark while the menu is open. Each
     turns about the icon's centre, (12, 12), by translating there and back:
     the stylesheet sets no transform-origin (see test_mascot). */
  .bar:has(.site-menu:popover-open:not(.is-closing)) .menu-line-top { transform: translate(12px, 12px) rotate(45deg) translate(-12px, -9px); }
  .bar:has(.site-menu:popover-open:not(.is-closing)) .menu-line-bottom { transform: translate(12px, 12px) rotate(-45deg) translate(-12px, -15px); }

  .site-menu {
    position: fixed;
    inset: calc(var(--bar-top) + var(--bar-height) + 8px) var(--bar-inset) auto;
    width: auto;
    max-height: calc(100dvh - var(--bar-top) - var(--bar-height) - 8px - var(--bar-inset));
    position-anchor: --site-bar;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    color: var(--ink);
    background: var(--glass-menu-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-glass);
    font-size: 16px;
  }
  .site-menu:popover-open { display: flex; }
  @supports (anchor-name: --a) {
    .site-menu {
      top: calc(anchor(bottom) + 8px);
      left: anchor(left);
      right: anchor(right);
    }
  }
  .site-menu::backdrop { background: transparent; }
  .site-menu > a,
  .menu-languages summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 11px;
    -webkit-tap-highlight-color: transparent;
  }
  .site-menu > a:hover,
  .site-menu > a[aria-current="page"],
  .menu-languages summary:hover { color: var(--ink); background: var(--bar-button-bg); }
  .site-menu a:focus-visible,
  .menu-languages summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .menu-languages {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--hairline);
  }
  .menu-languages summary { list-style: none; cursor: pointer; user-select: none; }
  .menu-languages summary::-webkit-details-marker { display: none; }
  .menu-languages summary:focus { outline: none; }
  .menu-languages summary svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .menu-language-name { flex: 1; }
  .menu-languages .chevron { width: 14px; height: 14px; }
  .menu-languages[open]:not(.is-shutting) .chevron { transform: rotate(180deg); }
  /* Two columns, as in the bar's own language menu. */
  .menu-language-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    padding: 4px 0 2px;
  }
  .menu-language-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-language-list a:hover,
  .menu-language-list a[aria-current="true"] { color: var(--ink); background: var(--bar-button-bg); }
  /* The languages unfold as the FAQ's answers do: one grid row that follows
     the list's natural height, clipped by .menu-language-clip so the list's
     own padding does not show while the row is shut. Older browsers keep
     the native disclosure without a transition. */
  @supports selector(::details-content) {
    .menu-languages::details-content {
      display: grid;
      grid-template-rows: 0fr;
    }
    .menu-languages[open]::details-content { grid-template-rows: 1fr; }
    /* site.js folds the list while it is still open, then shuts it: Safari
       stops drawing a disclosure's content the moment it shuts. */
    .menu-languages.is-shutting::details-content { grid-template-rows: 0fr; }
    .menu-language-clip {
      display: block;
      min-height: 0;
      overflow: hidden;
    }
    @media (prefers-reduced-motion: no-preference) {
      /* The chevron turns with the list, on the same curves. */
      .menu-languages::details-content,
      .menu-languages .chevron {
        transition: grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
                    content-visibility 260ms allow-discrete,
                    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
      }
      /* Shutting, the row's height falls faster than its fr value, so the
         curve starts slowly to keep the fold even. */
      .menu-languages:is(:not([open]), .is-shutting)::details-content,
      .menu-languages:is(:not([open]), .is-shutting) .chevron {
        transition-duration: 240ms;
        transition-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4);
      }
    }
  }
}
/* A browser without popovers keeps the globe in the bar, the footer
   leading to the rest. */
@supports not selector(:popover-open) {
  @media (max-width: 600px) {
    .menu-trigger { display: none; }
    .bar-links > .language-menu { display: block; }
  }
}
/* The menu unfolds downwards from under the bar: the clip opens from its
   top edge while it fades in and settles. The insets reach 40px past each
   edge so the open menu's shadow is not clipped. Closing folds it back up,
   a little quicker: site.js sets `is-closing` while the menu is still open
   and hides it when the transition ends, because a browser without
   `overlay` (Safari) takes a closing popover out of the top layer at once.
   Without the script, `overlay` still gives the closing transition where
   it is supported. */
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .site-menu {
    --menu-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    clip-path: inset(-40px);
    transition:
      opacity 0.2s ease,
      translate 0.32s var(--menu-ease),
      clip-path 0.32s var(--menu-ease),
      display 0.32s allow-discrete,
      overlay 0.32s allow-discrete;
  }
  .site-menu:not(:popover-open),
  .site-menu.is-closing {
    opacity: 0;
    translate: 0 -10px;
    clip-path: inset(-40px -40px calc(100% - 24px) -40px);
  }
  .site-menu.is-closing {
    pointer-events: none;
    transition:
      opacity 0.18s ease 0.04s,
      translate 0.22s cubic-bezier(0.4, 0, 1, 1),
      clip-path 0.22s cubic-bezier(0.4, 0, 1, 1);
  }
  @starting-style {
    .site-menu:popover-open {
      opacity: 0;
      translate: 0 -10px;
      clip-path: inset(-40px -40px calc(100% - 24px) -40px);
    }
  }
}
@media (max-width: 520px) {
  .bar {
    --bar-content-left: 21px;
    --bar-top: 8px;
    --bar-height: 48px;
    --bar-inset: 8px;
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    /* 36px controls, so 48px in all with the border. */
    padding: 5px 5px 5px 12px;
    border-radius: 18px;
  }
  .wordmark { font-size: 17px; }
  .language-menu { position: static; }
  .language-panel {
    right: 12px;
    min-width: min(320px, calc(100vw - 40px));
  }
  /* Only the icons are left here: 8px apart, as at 600px, so each 21px
     glyph has about 23px of air on either side. */
  .bar-links { gap: 8px; }
}

/* On a phone the bar is not a card at the top of the page: the wordmark and
   its controls stand on the page, and the material -- sheen, edge, blur and
   shadow -- comes in as the reader scrolls and something passes under it.
   Over a hero it comes in with the mascot, so the card is whole when the
   mascot docks and before the headline reaches it. Without scroll
   timelines the bar is the card it is everywhere else.

   While a menu hangs from it, it is a card at any scroll, and it eases
   into and out of that with the menu: the scroll and the menu each give a
   share, and the card is drawn at the larger. The scroll's share is
   scrubbed and the menu's is transitioned, which a scroll animation
   switched off and on again could not be. Closing, the menu's share falls
   while the menu folds (site.js's `is-closing`). Only opacity changes, of
   the material and of the shadow, so either palette and the
   reduced-transparency fill come through unchanged. The shadow moves to
   its own layer for that: Safari misplaces the material's backdrop filter
   on an element that also casts a shadow (see .bar). */
@property --bar-scrolled {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --bar-held {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@media (max-width: 600px) {
  .bar { box-shadow: none; }
  .bar::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: var(--bar-shadow);
  }
  .bar::before,
  .bar::after { opacity: max(var(--bar-scrolled), var(--bar-held)); }
  .bar:has(.site-menu:popover-open:not(.is-closing), .language-menu[open]) { --bar-held: 1; }
  @supports (animation-timeline: scroll()) {
    .bar {
      animation: bar-material-in linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 48px;
    }
    @media (prefers-reduced-motion: no-preference) {
      body:has(.hero) .bar { animation-range: 40px 170px; }
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    /* The menu's own curves: it unfolds over 0.32s and folds over 0.22s. */
    .bar { transition: --bar-held 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
    .bar:has(.site-menu.is-closing) { transition: --bar-held 0.22s cubic-bezier(0.4, 0, 1, 1); }
  }
}
@keyframes bar-material-in {
  from { --bar-scrolled: 0; }
  to { --bar-scrolled: 1; }
}

/* The blog. Written against the same custom properties, so both palettes and
   the page's measure come with it. */
.blog {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 24px 96px;
}
.blog-head { text-align: center; }
.posts { margin-top: 56px; display: grid; gap: 20px; }
.posts-empty { text-align: center; color: var(--ink-soft); }
.post-card a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.post-card a:hover { transform: translateY(-2px); }
.post-card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card-text { min-width: 0; }
.post-card time,
.post time {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.post-card h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card img {
  flex: none;
  width: 180px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.post-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.post-notice {
  margin: 0 0 32px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bar);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 14px;
}
.post h1 {
  margin-top: 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
}
.post-content {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.post-summary { color: var(--ink-soft); font-size: 19px; }
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
  letter-spacing: -0.015em;
  /* The page's h1 is a clipped gradient; a heading in a post is plain text. */
  background: none;
  color: var(--ink);
}
.post-content h1 { font-size: 30px; }
.post-content h2 { font-size: 25px; }
.post-content h3 { font-size: 20px; }
.post-content h4 { font-size: 17px; }
/* The ink carries the contrast, in both palettes; the accent marks it a link. */
.post-content a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 2px; }
.post-content img,
.post-content video { max-width: 100%; height: auto; border-radius: 12px; }
.post-content blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--hairline);
  color: var(--ink-soft);
}
.post-content code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--bar-button-bg);
}
.post-content pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bar);
  border: 1px solid var(--hairline);
}
.post-content pre code { padding: 0; background: none; }
.post-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.post-content th,
.post-content td { padding: 8px 12px; border: 1px solid var(--hairline); text-align: left; }
.post-back { margin: 48px 0 0; font-size: 15px; }
.post-back a { color: var(--ink-soft); text-decoration: none; }
.post-back a:hover { color: var(--ink); }
@media (max-width: 600px) {
  /* A cover beside the text would leave the text a narrow column. */
  .post-card a { flex-direction: column-reverse; }
  .post-card img { width: 100%; }
}

/* The manual: the tree, the page, and the page's own headings. Its body shares
   the blog's type; the rest is written against the same custom properties. */
.manual {
  --manual-accent: var(--accent, var(--ink-faint));
  --code-keyword: #7a3fd1;
  --code-string: #1b7f5c;
  --code-number: #b4541a;
  --code-comment: var(--ink-faint);
  --code-name: #2d62c8;
  --code-deleted: #c43d3d;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.manual:not(:has(.manual-toc)) { grid-template-columns: 240px minmax(0, 1fr); }
.manual-main { max-width: 720px; min-width: 0; }
.manual-sidebar,
.manual-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 14px;
}
.manual-home {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.manual-search-form input {
  width: 100%;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bar);
  color: var(--ink);
  font: inherit;
}
.manual-search-form input::placeholder { color: var(--ink-faint); }
/* Inside the box: the sidebar scrolls, and would clip a ring outside it. */
.manual-search-form input:focus-visible { outline: 2px solid var(--manual-accent); outline-offset: -2px; }
.manual-tree,
.manual-toc ol { margin: 0; padding: 0; list-style: none; }
.manual-tree .manual-tree,
.manual-toc ol ol { padding-left: 12px; }
.manual-tree a,
.manual-toc a {
  display: block;
  padding: 4px 0;
  color: var(--ink-soft);
  line-height: 1.4;
  text-decoration: none;
}
.manual-tree a:hover,
.manual-toc a:hover { color: var(--ink); }
.manual-tree a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.manual-toc h2 {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}
.manual-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--ink-faint);
  font-size: 14px;
  list-style: none;
}
.manual-breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.manual-breadcrumbs a { color: inherit; text-decoration: none; }
.manual-breadcrumbs a:hover { color: var(--ink); }
.manual-header h1,
.manual-search h1 {
  /* The page's h1 is a clipped gradient; a heading in the manual is plain text. */
  background: none;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
/* Inline, so a version badge sits on its last line. Inline text takes its
   balance from the block around it. */
.manual-header { text-wrap: balance; }
.manual-header h1 { display: inline; }
.manual-search h1 { margin-bottom: 24px; }
.manual-lede {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  text-wrap: balance;
}
.since {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--manual-accent) 14%, transparent);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}
.manual-content .admonition {
  margin: 1.4em 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bar);
}
.manual-content .admonition p { margin: 0; }
.manual-content .admonition p + p { margin-top: 0.6em; }
.manual-content .admonition-title { font-weight: 600; }
.manual-content .admonition.tip { border-left: 3px solid var(--code-string); }
/* `.note` is also the pricing page's small print. */
.manual-content .admonition.note {
  border-left: 3px solid var(--manual-accent);
  color: inherit;
  font-size: inherit;
  text-align: left;
}
.manual-content .admonition.warning { border-left: 3px solid var(--code-number); }
.manual-content .admonition.danger { border-left: 3px solid var(--code-deleted); }
.manual-content .highlight pre { margin: 0; }
.manual-content .highlight { margin: 1.4em 0; }
.manual-content .highlight :is(.k, .kc, .kd, .kn, .kp, .kr, .kt, .ow) { color: var(--code-keyword); }
.manual-content .highlight :is(.s, .s1, .s2, .sb, .sc, .sd, .se, .sh, .si, .sx) { color: var(--code-string); }
.manual-content .highlight :is(.m, .mf, .mh, .mi, .mo, .il) { color: var(--code-number); }
.manual-content .highlight :is(.c, .c1, .ch, .cm, .cp, .cs) { color: var(--code-comment); font-style: italic; }
.manual-content .highlight :is(.nb, .nc, .nf, .nd, .nn, .nt, .no) { color: var(--code-name); }
.manual-content .highlight :is(.na, .nv, .vc, .vg, .vi) { color: var(--code-number); }
.manual-content .highlight :is(.sr, .ss) { color: var(--code-string); }
.manual-content .highlight .gi { color: var(--code-string); }
.manual-content .highlight .gd { color: var(--code-deleted); }
.manual-content .highlight :is(.gh, .gu) { color: var(--ink-faint); font-weight: 600; }
.manual-content .broken-link { color: var(--ink-faint); }
.manual-section-list,
.manual-results { margin: 24px 0 0; padding: 0; list-style: none; }
.manual-section-list li,
.manual-results li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.manual-section-list a,
.manual-results a { color: var(--ink); font-weight: 600; text-decoration: none; }
.manual-section-list a:hover,
.manual-results a:hover { text-decoration: underline; text-decoration-color: var(--manual-accent); }
.manual-section-list p,
.manual-result-section,
.manual-result-snippet { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.manual-results mark {
  border-radius: 3px;
  background: color-mix(in srgb, var(--manual-accent) 24%, transparent);
  color: inherit;
}
.manual-overview { margin-top: 48px; }
.manual-overview h2 { font-size: 25px; }
.manual-updated { margin: 48px 0 0; color: var(--ink-faint); font-size: 14px; }
.manual-pager { display: flex; gap: 12px; margin-top: 24px; }
.manual-pager a {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.manual-pager a:hover { background: var(--bar); }
.manual-pager span { display: block; color: var(--ink-faint); font-size: 13px; font-weight: 400; }
.manual-pager-next { text-align: right; }
.scheme-dark .manual,
.manual.scheme-dark {
  --code-keyword: #c3a6ff;
  --code-string: #7fd8b4;
  --code-number: #f2b27a;
  --code-name: #8fb8ff;
  --code-deleted: #ff9a9a;
}
@media (max-width: 1100px) {
  .manual,
  .manual:not(:has(.manual-toc)) { grid-template-columns: 220px minmax(0, 1fr); }
  .manual-toc { display: none; }
}
@media (max-width: 760px) {
  .manual,
  .manual:not(:has(.manual-toc)) { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  /* The page first; the tree would otherwise stand between a reader and it. */
  .manual-sidebar { position: static; order: 2; max-height: none; }
  /* Under 16px, iOS Safari zooms the page when the field takes focus. */
  .manual-search-form input { font-size: 16px; }
}

/* Keep navigation legible when transparency is unavailable or unwanted. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar::before, .language-panel, .video-loading, .video-replay, .video-fallback-card { background: var(--surface-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .bar::before, .language-panel, .video-loading, .video-replay, .video-fallback-card {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Continuous corners need a wider transition than circular arcs. Keep the
   original radii as the fallback for browsers without corner-shape. */
@supports (corner-shape: squircle) {
  .bar,
  .bar::before,
  .bar::after,
  .language-panel,
  .site-menu,
  .bar-button,
  .button { corner-shape: squircle; }

  .bar { border-radius: 30px; }
  .language-panel,
  .site-menu { border-radius: 24px; }
  .bar-button { border-radius: 18px !important; }
  .button { border-radius: 22px; }

  @media (max-width: 520px) {
    .bar { border-radius: 28px; }
  }
}

/* Negative tracking tightens Latin display type; CJK is set solid, and
   pulling square glyphs together only crowds them. The wordmark and the
   prices are Latin on every page, so they keep theirs. */
:is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2, h3, h4, .perpetual-heading, .questions summary) {
  letter-spacing: 0;
}
/* Chinese breaks between any two characters, so balancing the hero split
   而生 across lines ("为 Mac 而 / 生的 Agent"). Its copy spaces every Latin
   word, so the hero breaks only there and at punctuation; a term that must
   not part at its space ("AI Agent") is joined by a no-break space in the
   catalogue. Japanese leaves too few spaces for this and keeps the
   default. */
:lang(zh) :is(.hero h1, .hero .lede) {
  word-break: keep-all;
}
/* The same for the parts' headings, in Japanese and Korean too: balanced
   across any two characters, a narrow column split エージェント and
   サブスクリプション. Their copy is written to break at its punctuation and
   spaces; a phrase too long for the column still wraps rather than spill. */
:is(:lang(zh), :lang(ja), :lang(ko)) .story h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* At 30px on a 375–430px phone, "你的 Mac 伙伴，点一下就来" overflows one line
   and keep-all strands "Mac" from "伙伴"; scaling only CJK .story-head h2
   keeps it on a single line while Latin keeps its 30px hierarchy. */
@media (max-width: 520px) {
  :is(:lang(zh), :lang(ja), :lang(ko)) .story-head h2 {
    font-size: clamp(23px, 6.1vw, 30px);
  }
}
/* Korean is spaced by word, and set like Latin: a line breaks between words,
   never inside one (명령/을). */
:lang(ko) .story :is(p, figcaption) {
  word-break: keep-all;
}
