@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Layout: a magic act on one page.

   The hero is a stage with three hats, one for each browser profile, and a
   link drops into the right hat. The problem follows on plain paper. Then the
   curtain goes up on the trick: a teal stage, the colour of the app icon,
   with the prompt of the app. After the trick, the page explains how the
   suggestion works, and the download is on the stage again.

   Colour means a profile: coral for Personal, indigo for Work and green for
   Fernbird, the side project. A hat, a chip or a highlighted word in a window
   title has the colour of its profile. The surfaces and the buttons stay
   neutral, and the drawn macOS interface uses the colours of macOS.

   The headings use Fraunces, with soft letters. The body text and the drawn
   interface use the system font. */

:root {
  color-scheme: light;
  --paper: #FBF7EF;
  --sheet: #FFFFFF;
  --ink: #15201F;
  --ink-2: #46524F;
  --ink-3: #66706D;
  --rule: #EAE2D3;
  --rule-2: #D9CDB8;
  --focus: #1F7A78;
  --accent-ink: #1C6866;
  --btn: #15201F;
  --btn-hover: #263735;
  --btn-ink: #FBF7EF;
  --shadow: rgba(21, 32, 31, .22);

  /* The stage: the tile of the app icon, lit from above */
  --stage: #1F5C5B;
  --stage-hi: #2F7C7A;
  --stage-ink: #FFF4E0;
  --stage-ink-2: rgba(255, 244, 224, .8);
  --stage-rule: rgba(255, 244, 224, .2);
  --hat: #F6EAD2;
  --hat-top: #EADAB9;
  --hat-brim: #E2CDA4;
  --sparkle: #FFF4E0;

  /* The profiles. A colour is for a hat band, a glyph or a field. Ink is for
     text on the paper. On the stage, a profile uses its colour. */
  --personal: #D9553F;
  --personal-ink: #A93824;
  --work: #6250D8;
  --work-ink: #4B3BBF;
  --fern: #2E8B55;
  --fern-ink: #1E6B3F;

  /* The drawn macOS interface */
  --mac-accent: #0A72F0;
  --mac-link: #0A60D0;
  --glass: rgba(250, 249, 246, .93);
  --glass-ink: #1D1D1F;
  --glass-ink-2: #6E6E73;
  --glass-edge: rgba(0, 0, 0, .12);
  --keycap-fill: rgba(0, 0, 0, .055);
  --keycap-edge: rgba(0, 0, 0, .2);
  --win-bg: #FFFFFF;
  --win-bar: #F4F2EE;
  --win-rule: #E5E0D7;
  --win-edge: rgba(0, 0, 0, .1);
  --win-ink: #1D1D1F;
  --win-ink-2: #6E6E73;
  --win-field: #EAE7E1;
  --bubble: #E9E9EB;
  --light-r: #FF5F57;
  --light-y: #FEBC2E;
  --light-g: #28C840;

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --pad: max(20px, env(safe-area-inset-left, 0px));
  --max: 1160px;
}

/* The dark colours. The same block applies to the system setting and to a
   choice of dark in the appearance switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0E1514; --sheet: #162120; --ink: #F4EEE2; --ink-2: #C4C9C3; --ink-3: #939C97;
    --rule: #22302E; --rule-2: #33433F; --focus: #6FD0CB; --accent-ink: #7FD6D0;
    --btn: #F4EEE2; --btn-hover: #FFFFFF; --btn-ink: #0E1514; --shadow: rgba(0, 0, 0, .6);
    --stage: #174948; --stage-hi: #23625F;
    --personal: #F07A64; --personal-ink: #FF9884; --work: #8F82F6; --work-ink: #B2A8FF; --fern: #4DBF7C; --fern-ink: #7DD9A1;
    --mac-accent: #0A84FF; --mac-link: #4DA3FF;
    --glass: rgba(38, 38, 42, .92); --glass-ink: #F2F2F4; --glass-ink-2: #A1A1A8; --glass-edge: rgba(255, 255, 255, .14);
    --keycap-fill: rgba(255, 255, 255, .1); --keycap-edge: rgba(255, 255, 255, .24);
    --win-bg: #1C1C20; --win-bar: #27272C; --win-rule: #35353B; --win-edge: rgba(255, 255, 255, .1);
    --win-ink: #ECECF0; --win-ink-2: #9A9AA3; --win-field: #34343A; --bubble: #3A3A3F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1514; --sheet: #162120; --ink: #F4EEE2; --ink-2: #C4C9C3; --ink-3: #939C97;
  --rule: #22302E; --rule-2: #33433F; --focus: #6FD0CB; --accent-ink: #7FD6D0;
  --btn: #F4EEE2; --btn-hover: #FFFFFF; --btn-ink: #0E1514; --shadow: rgba(0, 0, 0, .6);
  --stage: #174948; --stage-hi: #23625F;
  --personal: #F07A64; --personal-ink: #FF9884; --work: #8F82F6; --work-ink: #B2A8FF; --fern: #4DBF7C; --fern-ink: #7DD9A1;
  --mac-accent: #0A84FF; --mac-link: #4DA3FF;
  --glass: rgba(38, 38, 42, .92); --glass-ink: #F2F2F4; --glass-ink-2: #A1A1A8; --glass-edge: rgba(255, 255, 255, .14);
  --keycap-fill: rgba(255, 255, 255, .1); --keycap-edge: rgba(255, 255, 255, .24);
  --win-bg: #1C1C20; --win-bar: #27272C; --win-rule: #35353B; --win-edge: rgba(255, 255, 255, .1);
  --win-ink: #ECECF0; --win-ink-2: #9A9AA3; --win-field: #34343A; --bubble: #3A3A3F;
}

/* The profile of an element: its colour and its ink */
.p-personal { --hue: var(--personal); --hue-ink: var(--personal-ink); }
.p-work { --hue: var(--work); --hue-ink: var(--work-ink); }
.p-fern { --hue: var(--fern); --hue-ink: var(--fern-ink); }

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
main[id], section[id], div[id] { scroll-margin-top: 24px; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; }
.defs { position: absolute; }

.wrap { padding-inline: max(var(--pad), (100% - var(--max)) / 2); }
.label {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display {
  font-family: var(--font-display);
  font-weight: 640;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -.025em;
  line-height: 1.02;
}
.display em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.button.primary { background: var(--btn); color: var(--btn-ink); }
.button.primary:hover { background: var(--btn-hover); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.button.secondary:hover { border-color: var(--ink); }
.button.light { background: var(--stage-ink); color: #15201F; }
.button.light:hover { background: #FFFFFF; }
.button svg { width: 18px; height: 18px; flex: none; }
.button.large { padding: 19px 32px; font-size: 1.12rem; }
@media (prefers-reduced-motion: no-preference) { .button:hover { transform: translateY(-1px); } }

/* A key on the keyboard, in the text and in the drawn prompt */
.keycap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.6em; height: 1.6em;
  padding: 0 .4em;
  border-radius: .4em;
  border: 1px solid var(--rule-2);
  border-bottom-width: 2px;
  background: var(--sheet);
  color: var(--ink);
  font: 600 .74em/1 var(--font-rounded);
  font-variant-numeric: tabular-nums;
  vertical-align: .1em;
}

/* A key cap and the punctuation after it stay on one line. */
.nobr { white-space: nowrap; }

/* A profile: the hat of the icon, then the name, in the colour of the profile */
.hat-chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .12em .7em .12em .55em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hue, var(--ink-3)) 13%, transparent);
  color: var(--hue-ink, var(--ink-2));
  font-weight: 600;
  font-size: .92em;
  line-height: 1.5;
  white-space: nowrap;
}
.hat-chip svg { width: 1.15em; height: .78em; fill: var(--hue); flex: none; }
.hat-chip.none { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-3); font-weight: 500; }
/* A profile name in a window title */
mark.match {
  background: color-mix(in srgb, var(--hue) 20%, transparent);
  color: var(--hue-ink);
  font-weight: 600;
  border-radius: 4px;
  padding: 0 .15em;
  margin: 0 -.15em;
}

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand span { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 680; font-size: 1.35rem; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: .93rem; font-weight: 500; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--ink); }
.site-nav .button { padding: 9px 16px; font-size: .9rem; }
body:not(:has(.hero)) .site-header { border-bottom: 1px solid var(--rule); }
@media (max-width: 860px) { .site-nav a[href^="/#"]:not(.button) { display: none; } }
@media (max-width: 520px) { .site-nav a:not(.button) { display: none; } }

/* Hero: the copy, then the act */
.hero { padding-block: clamp(20px, 5vh, 56px) clamp(72px, 10vw, 128px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 18px; max-width: 34em; }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.035em; margin-top: 4px; }
.subhead { font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.08; color: var(--ink-2); font-weight: 560; }
.subhead em { color: var(--accent-ink); }
.lede { font-size: 1.12rem; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.provenance { color: var(--ink-2); }
.provenance a { color: var(--ink); font-weight: 600; }
.requirements { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }

/* The act: an SVG stage with three hats */
.act { margin: 0; }
.act svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 44px var(--shadow)); }
.act .stage-floor { fill: url(#spotlight); }
.act .spot-1 { stop-color: var(--stage-hi); }
.act .spot-2 { stop-color: var(--stage); }
.act .twinkles { fill: var(--sparkle); opacity: .7; }
.act .hat-shadow { fill: rgba(0, 0, 0, .24); }
.act .crown { fill: var(--hat); }
.act .top { fill: var(--hat-top); }
.act .brim { fill: var(--hat-brim); }
.act .band { fill: var(--hue); }
.act .sparkles { fill: var(--sparkle); opacity: 0; }
.act .name text { fill: var(--stage-ink); font: 600 16px var(--font-body); text-anchor: middle; }
.act .name-chip { fill: var(--hue); opacity: 0; }
.act .drop { opacity: 0; }
.act .source { fill: var(--stage-ink-2); font: 500 13px var(--font-mono); text-anchor: middle; }
.act .pill { fill: #FFFFFF; }
.act .pill-text { fill: #1D1D1F; font: 600 16px var(--font-body); }
.act .pill-glyph { fill: none; stroke: #0A60D0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* At rest, and with reduced motion: the link from Mail is above the Work hat */
.act .to-work, .act .p-work .sparkles, .act .p-work .name-chip { opacity: 1; }

/* In motion: the links of the three apps, one after the other. For each
   link, its hat lifts, the link goes under it, and the hat comes down. Each
   link takes a third of the cycle. --dx is the distance from the middle hat
   to the hat of the link. */
@keyframes drop {
  0% { opacity: 0; transform: translate(0, -14px); }
  3%, 12% { opacity: 1; transform: translate(0, 0); }
  18% { opacity: 1; transform: translate(var(--dx), 120px) scale(.6); }
  22.5%, 26% { opacity: 1; transform: translate(var(--dx), 236px) scale(.4); }
  28%, 100% { opacity: 0; transform: translate(var(--dx), 236px) scale(.4); }
}
@keyframes lift {
  0%, 13% { transform: none; }
  17%, 22.5% { transform: translateY(-96px) rotate(-8deg); }
  25.5% { transform: none; }
  26.8% { transform: translateY(2px) scale(1.03, .97); }
  28.5%, 100% { transform: none; }
}
@keyframes pop {
  0%, 25.5% { opacity: 0; transform: scale(.2); }
  28% { opacity: 1; transform: scale(1.15); }
  31% { opacity: 1; transform: scale(1); }
  36%, 100% { opacity: 0; transform: scale(.9); }
}
@keyframes chip {
  0%, 25.5% { opacity: 0; }
  28%, 36% { opacity: 1; }
  40%, 100% { opacity: 0; }
}
@keyframes twinkle {
  from { opacity: .35; }
  to { opacity: .85; }
}
@media (prefers-reduced-motion: no-preference) {
  .act .drop { --dx: 0px; animation: drop 15s ease-in-out infinite both; transform-box: fill-box; transform-origin: center; }
  .act .to-fern { --dx: 190px; }
  .act .to-personal { --dx: -190px; }
  .act .hat { animation: lift 15s ease-in-out infinite both; transform-box: fill-box; transform-origin: 50% 100%; }
  .act .sparkles { animation: pop 15s ease-out infinite both; transform-box: fill-box; transform-origin: center; }
  .act .name-chip { animation: chip 15s ease-out infinite both; }
  .act .to-fern, .act .p-fern .hat, .act .p-fern .sparkles, .act .p-fern .name-chip { animation-delay: 5s; }
  .act .to-personal, .act .p-personal .hat, .act .p-personal .sparkles, .act .p-personal .name-chip { animation-delay: 10s; }
  .act .twinkles { animation: twinkle 3.2s ease-in-out infinite alternate; }
}

/* Sections on the paper */
.section { padding-block: clamp(80px, 11vw, 144px) 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.section-head { display: grid; gap: 14px; align-content: start; }
.section-head h2 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.section-head p:not(.label) { color: var(--ink-2); font-size: 1.08rem; }
.section-head.narrow { max-width: 44em; margin-bottom: clamp(32px, 4vw, 52px); }
.docs-link a { font-size: .92rem; font-weight: 600; }
.docs-link .label { display: inline-block; margin-right: .7em; }

/* A window of macOS, drawn with HTML */
.window {
  background: var(--win-bg);
  color: var(--win-ink);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px var(--win-edge), 0 40px 80px -32px var(--shadow), 0 10px 24px -12px var(--shadow);
  min-width: 0;
}
.titlebar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  background: var(--win-bar);
  border-bottom: 1px solid var(--win-rule);
}
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--light-r); }
.lights i:nth-child(2) { background: var(--light-y); }
.lights i:nth-child(3) { background: var(--light-g); }
.titlebar .title { flex: 1; min-width: 0; text-align: center; color: var(--win-ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 52px; }

/* The problem: a link from the Work inbox, in the Personal profile */
.wrong-hat { margin: 0; display: grid; gap: 16px; min-width: 0; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .95rem; }
.route .arrow { color: var(--ink-3); }
.profile-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 7px;
  background: var(--hue);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
}
.address {
  flex: 1; min-width: 0;
  padding: 4px 12px;
  border-radius: 7px;
  background: var(--win-field);
  color: var(--win-ink-2);
  font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-page { display: grid; justify-items: center; gap: 10px; padding: clamp(40px, 6vw, 64px) 24px; text-align: center; }
.browser-page .lock { width: 40px; height: 40px; color: var(--win-ink-2); margin-bottom: 4px; }
.page-title { font-size: 17px; font-weight: 600; }
.page-text { max-width: 26em; color: var(--win-ink-2); }
.page-button { margin-top: 8px; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--win-rule); font-weight: 600; color: var(--mac-link); }

/* The stage: the trick and the download */
.stage-section {
  --ink-3: var(--stage-ink-2);
  margin-top: clamp(80px, 11vw, 144px);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--stage-hi), transparent 70%), var(--stage);
  color: var(--stage-ink);
  padding-block: clamp(80px, 11vw, 136px);
}
.stage-section .hat-chip { background: rgba(255, 244, 224, .14); color: var(--stage-ink); }
.stage-section .hat-chip svg { fill: color-mix(in srgb, var(--hue) 70%, #FFFFFF); }
.trick-head { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 44em; margin-inline: auto; }
.trick-head h2 { font-size: clamp(3.2rem, 9vw, 7rem); line-height: .95; letter-spacing: -.035em; }
.trick-head p { color: var(--stage-ink-2); font-size: 1.12rem; }
.trick-sparkle { width: 40px; height: 40px; fill: var(--sparkle); }

.trick-demo { display: grid; justify-items: center; gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.segments { display: flex; border: 1px solid var(--stage-rule); border-radius: 999px; padding: 3px; gap: 2px; }
.segments button {
  font: 600 .9rem/1 var(--font-body);
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--stage-ink-2);
  cursor: pointer;
}
.segments button:hover { color: var(--stage-ink); }
.segments button[aria-pressed="true"] { background: var(--stage-ink); color: #15201F; }
.segments button:focus-visible { outline-color: var(--stage-ink); }

/* The scene: the window that the link comes from, with the prompt over it */
.trick-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  width: min(100%, 980px);
}
.source-window { grid-column: 1; grid-row: 1; margin-right: -64px; }
.source-body { display: grid; gap: 8px; padding: 18px 20px 26px; min-height: 196px; align-content: start; }
.source-body .meta { display: flex; justify-content: space-between; color: var(--win-ink-2); }
.source-body .meta b { color: var(--win-ink); }
.source-body .subject { font-weight: 600; font-size: 14px; }
.source-body .channel { font-weight: 700; font-size: 14px; }
.source-body .link { color: var(--mac-link); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.source-body.bubbles { justify-items: start; padding-top: 28px; }
.bubble { padding: 7px 13px; border-radius: 17px; background: var(--bubble); max-width: 85%; }
/* The click on the link */
.pointer {
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid var(--mac-link);
}
@media (prefers-reduced-motion: no-preference) {
  .pointer { animation: click 2.4s ease-out infinite; }
}
@keyframes click {
  0%, 30% { transform: scale(.4); opacity: 0; }
  40% { transform: scale(.7); opacity: 1; }
  80%, 100% { transform: scale(1.4); opacity: 0; }
}

/* The prompt of Hat Trick, as in the app: a rounded glass panel */
.prompt {
  grid-column: 2; grid-row: 1;
  position: relative;
  display: grid; gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  color: var(--glass-ink);
  box-shadow: 0 0 0 .5px var(--glass-edge), 0 24px 48px -12px rgba(0, 0, 0, .45);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  min-width: 0;
}
.prompt .keycap {
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: .5px solid var(--keycap-edge);
  background: var(--keycap-fill);
  color: inherit;
  font-size: 11px;
  vertical-align: middle;
}
.prompt-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 0; min-width: 0; }
.app-glyph {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(var(--win-bg), var(--win-field));
  box-shadow: 0 0 0 .5px var(--glass-edge), 0 1px 2px rgba(0, 0, 0, .15);
  color: var(--glass-ink-2);
}
.app-glyph svg { width: 22px; height: 22px; }
.prompt-site { display: grid; min-width: 0; }
.prompt-site b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-site span { font-size: 12px; color: var(--glass-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.prompt-rows li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; cursor: default; }
.row-name { font-weight: 500; }
.suggested {
  display: none;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mac-accent) 20%, transparent);
  font-size: 10px;
  font-weight: 600;
}
.prompt-rows li.is-suggested .suggested { display: inline-block; }
/* The highlighted row looks like a selected menu item */
.prompt-rows li.selected { background: var(--mac-accent); color: #FFFFFF; }
.prompt-rows li.selected .suggested { background: rgba(255, 255, 255, .25); }
.prompt-rows li.selected .keycap { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16); }
.prompt-options { display: grid; gap: 6px; padding: 0 6px; }
.checkbox { display: flex; align-items: center; gap: 6px; }
.checkbox > span:not(.keycap) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkbox i {
  width: 14px; height: 14px;
  border-radius: 4px;
  border: .5px solid var(--keycap-edge);
  background: var(--win-bg);
  box-shadow: 0 .5px 1px rgba(0, 0, 0, .12);
}
.prompt-foot { display: flex; align-items: center; gap: 12px; padding: 0 6px 6px; font-size: 11px; color: var(--glass-ink-2); }
.prompt-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.prompt-foot .cancel {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--win-bg);
  box-shadow: 0 0 0 .5px var(--keycap-edge), 0 .5px 1px rgba(0, 0, 0, .12);
  color: var(--glass-ink);
  font-size: 11px;
}
.reason { color: var(--stage-ink-2); text-align: center; font-size: 1.02rem; }

/* Matching: window titles and the profile that each one names */
.matches { list-style: none; margin: 0; padding: 0; display: grid; }
.matches li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.matches li:first-child { border-top: 1px solid var(--rule); }
.matches .app { grid-column: 1 / -1; font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.window-title {
  justify-self: start;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: .86rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.matches .miss .window-title { color: var(--ink-3); }

/* Suggestions: the order */
.order { list-style: none; margin: 0; padding: 0; display: grid; }
.order li { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.order li:first-child { border-top: 1px solid var(--rule); }
.order b { color: var(--ink); font-weight: 600; }
.order .keycap { flex: none; font-size: .8em; }

/* Details */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.feature { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule-2); padding-top: 16px; min-width: 0; }
.feature h3 { font-size: 1.12rem; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: .97rem; line-height: 1.6; }

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.points li { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); }
.points b { font-weight: 700; }
.points b::before { content: "✓" / ""; margin-right: .45em; color: var(--accent-ink); }
.points span { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }

.faq-list { display: grid; max-width: 52em; }
.faq-list details { border-top: 1px solid var(--rule-2); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.06rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; font: 500 1.3rem/1 var(--font-mono); color: var(--ink-3); }
.faq-list details[open] summary::after { content: "−" / ""; }
.faq-list details p { color: var(--ink-2); padding-bottom: 20px; }

/* Pricing: the plan, and the notes beside it */
.pricing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; max-width: 960px; }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(24px, 3vw, 34px); display: grid; gap: 18px; min-width: 0; box-shadow: 0 24px 48px -32px var(--shadow); }
.plan h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink-3); }
.price { display: grid; gap: 6px; }
.price b { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 680; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); font-size: .95rem; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; }
.plan-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.plan-list li::before { content: "✓" / ""; color: var(--accent-ink); font-weight: 700; }
.plan .button { width: 100%; font-size: 1.05rem; }
.plan-notes { display: grid; gap: 12px; font-size: .95rem; }
.plan-notes .trust { color: var(--ink-2); }
.buy-status { margin-top: 16px; color: var(--ink-2); }

/* The thank-you page: the keys of a purchase */
.licence-keys { display: grid; gap: 10px; }
.licence-key {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--sheet);
}
.licence-key code {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.5;
  color: var(--ink); word-break: break-all;
}
.licence-key .button { padding: 10px 16px; font-size: .92rem; }
.waiting { display: flex; align-items: center; gap: 12px; }
.spinner {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--rule); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Download, on the stage */
.download { text-align: center; }
.download-head { display: grid; justify-items: center; gap: 18px; }
.download-icon { width: 112px; height: 112px; }
.download-head h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; }
.download-head p { color: var(--stage-ink-2); font-size: 1.12rem; }
.download-action { display: grid; justify-items: center; gap: 16px; margin-top: 32px; }
.download .requirements { color: var(--stage-ink-2); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); }
.stage-section + .site-footer, main:has(> .stage-section:last-child) + .site-footer { border-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px 40px; font-size: .88rem; color: var(--ink-3); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { flex-basis: 100%; font-size: .8rem; }
/* The appearance switch: auto, light or dark */
.appearance { display: inline-flex; align-items: center; gap: 4px; }
.appearance .label { margin-right: 6px; }
.appearance button {
  font: 500 .8rem/1 var(--font-body);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.appearance button:hover { color: var(--ink); border-color: var(--ink-3); }
.appearance button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Text pages: support, privacy, release notes */
.text-page { padding-block: clamp(40px, 7vw, 80px) clamp(72px, 10vw, 120px); display: grid; gap: clamp(24px, 4vw, 36px); }
.text-page h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -.035em; }
.prose { max-width: 40em; display: grid; gap: 16px; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin-top: 16px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .updated { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.email { font-weight: 600; font-size: 1.15rem; }
.release { max-width: 40em; display: grid; gap: 14px; border-top: 1px solid var(--rule-2); padding-top: 20px; }
.release-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.release-head h2 { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 680; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.release h3 { font-size: 1rem; font-weight: 700; margin: 10px 0 0; }
.release p, .release li { color: var(--ink-2); }
.release ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Documentation: a sidebar of pages, and an article. On a narrow screen the
   sidebar goes after the article, and a link at the top jumps to it. */
.docs {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px);
}
.docs-nav { grid-column: 1; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: grid; gap: 22px; font-size: .92rem; padding-bottom: 8px; }
.docs-article { grid-column: 2; grid-row: 1; min-width: 0; max-width: 46em; }
.docs-home { font-weight: 700; color: var(--ink); text-decoration: none; }
.docs-group { display: grid; gap: 8px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.docs-nav a { color: var(--ink-2); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.docs-nav .docs-toc { margin: 6px 0 6px 2px; padding-left: 12px; border-left: 3px solid var(--rule-2); gap: 3px; font-size: .86rem; }
.docs-nav .docs-toc a { color: var(--ink-3); }
.docs-nav .docs-toc a:hover { color: var(--ink); }
.docs-jump { display: none; margin-bottom: 16px; font-size: .92rem; }
.docs-article h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.035em; margin-bottom: clamp(20px, 3vw, 28px); }

.docs-body { display: grid; gap: 16px; }
.docs-body > * { margin: 0; }
.docs-body h2, .docs-body h3 { scroll-margin-top: 24px; }
.docs-body h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.docs-body h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-top: 12px; }
.docs-body p, .docs-body li, .docs-body td { color: var(--ink-2); }
.docs-body strong { color: var(--ink); font-weight: 600; }
.docs-body ul, .docs-body ol { padding-left: 1.3em; display: grid; gap: 6px; }
.docs-body li > ul, .docs-body li > ol { margin-top: 6px; }
.docs-body li > p { margin: 0; }
.docs-body code {
  font-family: var(--font-mono); font-size: .84em;
  padding: .1em .35em; border-radius: 5px;
  background: var(--sheet); border: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.docs-body pre {
  padding: 14px 16px; border-radius: 10px;
  background: var(--sheet); border: 1px solid var(--rule);
  overflow-x: auto; line-height: 1.5;
}
.docs-body pre code { padding: 0; border: 0; background: none; font-size: .82rem; overflow-wrap: normal; }
.docs-body kbd {
  font-family: var(--font-rounded); font-size: .85em; font-weight: 600;
  padding: .05em .4em; border-radius: 5px;
  border: 1px solid var(--rule-2); border-bottom-width: 2px; background: var(--sheet); color: var(--ink);
}
.docs-body blockquote {
  padding: 14px 18px; border-left: 3px solid var(--accent-ink); border-radius: 0 8px 8px 0;
  background: var(--sheet); display: grid; gap: 10px;
}
.docs-body blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; }
.docs-body table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.docs-body th, .docs-body td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.docs-body th { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink-3); }

.shot { margin: 12px 0; display: grid; gap: 10px; justify-items: center; }
.shot img { display: block; max-width: 100%; height: auto; }
.shot-app img { filter: drop-shadow(0 10px 24px var(--shadow)); }
.shot-browser img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 10px 28px var(--shadow); }
.shot figcaption { font-size: .88rem; color: var(--ink-3); text-align: center; max-width: 36em; }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 56px); }
.docs-pager a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600; }
.docs-pager a:hover { border-color: var(--ink-3); }
.docs-pager a[rel="next"] { text-align: right; grid-column: 2; }

.docs-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; margin-top: 16px; }
.docs-contents:empty { display: none; }
.docs-section { display: grid; gap: 12px; align-content: start; }
.docs-section h2.label { margin: 0; padding: 0; border: 0; font-size: .74rem; font-weight: 500; }
.docs-section ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.docs-section li { display: grid; gap: 2px; }
.docs-section a { font-weight: 600; text-decoration: none; }
.docs-section a:hover { text-decoration: underline; }
.docs-section span { font-size: .92rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-article, .docs-nav { grid-column: 1; grid-row: auto; }
  .docs-nav { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--rule); padding-top: 28px; }
  .docs-jump { display: block; }
}

/* A narrow window: one column */
@media (max-width: 960px) {
  .hero-grid, .split, .pricing { grid-template-columns: minmax(0, 1fr); }
  .plan { max-width: 480px; }
  .hero-copy { max-width: 40em; }
  .act { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: minmax(0, 1fr); }
}

/* A phone: the prompt goes under the window that the link comes from */
@media (max-width: 720px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .trick-scene { grid-template-columns: minmax(0, 1fr); }
  .source-window { margin: 0 12px; }
  .source-body { min-height: 0; padding-bottom: 56px; }
  .prompt { grid-column: 1; grid-row: 2; margin-top: -40px; }
  .prompt-foot > span:nth-child(2) { display: none; }
  .segments button { padding: 9px 14px; }
  /* The act gets small, so its names get bigger. */
  .act .name text { font-size: 21px; }
}
