:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #2d8a5a;
  --accent-text: #1f6e47;
  --accent-soft: #e4f3ea;
  --code-bg: #f4f4f7;
  --warn: #c2410c;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-alt: #19191c;
    --card: #1c1c1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c31;
    --accent: #3fb37a;
    --accent-text: #7fd6a5;
    --accent-soft: #17301f;
    --code-bg: #1f1f23;
    --warn: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
kbd {
  font: 600 0.82em/1 -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3px 7px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--card); white-space: nowrap;
}
code { font-family: var(--mono); font-size: 0.88em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--card); padding: 8px 12px; }

/* Shared with Choose With (tombigel/ChooseWith docs/assets/site.css); only the accent differs. */

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); white-space: nowrap; }
.top nav .short { display: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 980px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); }

/* Code blocks with copy */
.cmd {
  position: relative; display: flex; align-items: center;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
  margin: 0 0 12px;
}
.cmd pre {
  margin: 0; padding: 12px 16px; overflow-x: auto; flex: 1;
  font: 14.5px/1.6 var(--mono); white-space: pre;
}
.cmd pre .c { color: var(--muted); }
.cmd pre .p { color: var(--muted); user-select: none; }
.copy {
  flex: none; align-self: flex-start; margin: 6px 6px 6px 0;
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  padding: 6px 9px; cursor: pointer;
}
.copy:hover { background: var(--card); border-color: var(--line); color: var(--text); }
.copy svg { width: 15px; height: 15px; }
.copy.done { color: #16a34a; }

/* Home: hero */
.hero { text-align: center; padding-block: 72px 40px; }
.hero .icon { width: 128px; height: 128px; filter: drop-shadow(0 10px 24px rgb(45 138 90 / 0.28)); }
.hero h1 { font-size: clamp(40px, 7vw, 64px); margin: 16px 0 8px; font-weight: 700; }
.hero .tagline { font-size: clamp(20px, 3vw, 26px); color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.hero .lede { max-width: 620px; margin: 0 auto 28px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero .cmd { max-width: 520px; margin: 0 auto; text-align: left; }
.hero .req { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Home: demo */
.demo-frame { max-width: 860px; margin: 0 auto; }
.demo-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Demo colors: a dark Mac by default, a light one in light mode. */
/* App screenshot, light or dark to match the page */
.shot { display: block; width: 100%; height: auto; border-radius: 12px; }
.shot-frame { filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.18)); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding: 8px 0 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.card .glyph svg { width: 22px; height: 22px; }

.band { background: var(--bg-alt); border-block: 1px solid var(--line); padding: 64px 0; }
.band h2 { text-align: center; font-size: 34px; margin: 0 0 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { color: var(--muted); margin: 0; }
.center { text-align: center; margin-top: 36px; }

/* Home: the hero's tabs (Install on Mac, Web app, AI on Mac) */
.get { max-width: 780px; margin: 0 auto; text-align: left; }
.get .tabs { justify-content: center; margin-bottom: 12px; }
.tabs [role="tab"] {
  font: 500 15px -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-radius: 980px; padding: 7px 16px; cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; scroll-margin-top: 80px; }
.panel p { color: var(--muted); font-size: 16px; }
.panel p strong { color: var(--text); }
.panel > :last-child { margin-bottom: 0; }
.panel .cmd { margin-bottom: 12px; }
.panel .req { text-align: center; margin-top: 0; }
.panel .req code { overflow-wrap: anywhere; }
.center-row { text-align: center; }
.panel .or { text-align: center; font-size: 14px; margin: 4px 0 8px; }
.panel h3 { margin: 0 0 6px; font-size: 21px; }

/* Install on Mac tab: the demo, then download or Homebrew */
.panel .demo-frame { max-width: none; margin: 0 0 22px; }
.panel .stage { box-shadow: none; }
.mac-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 24px; align-items: center; }
.mac-split .req { text-align: left; margin: 0 0 14px; font-size: 14px; }
.mac-split .or { text-align: left; margin: 0 0 8px; }
.mac-split .cmd { margin: 0; }
.mac-split .cmd pre { font-size: 13.5px; }
.web-split .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.web-split .chips { gap: 8px; }
.web-split .chips li { padding: 6px 10px; border-radius: 10px; font-size: 13px; white-space: nowrap; }

/* Web app tab: a browser-framed screenshot, what it does, what the Mac app adds */
.web-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.web-thumb { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.web-thumb:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgb(0 0 0 / 0.18); }
.web-thumb img { display: block; width: 100%; height: auto; }
.web-thumb .url { order: -1; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--bg-alt); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.web-thumb .url::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; box-shadow: 11px 0 #febc2e, 22px 0 #28c840; margin-right: 24px; }
.chips { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 11px; border-radius: 980px; font-size: 13.5px; font-weight: 500; background: var(--accent-soft); color: var(--accent-text); }
.chips li::before { content: "✓ "; font-weight: 700; }
.adds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.adds-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.adds .chips { margin: 0; }
.chips-plus li { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.chips-plus li::before { content: "+ "; color: var(--accent-text); }
.chips-plus a { color: inherit; }

/* AI on Mac tab: a chat that plays when the tab opens, then three steps */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 16px; }
.msg { padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg.you { align-self: flex-end; max-width: 86%; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.reply { position: relative; }
.msg.dots { position: absolute; left: 0; top: 0; opacity: 0; display: flex; gap: 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }
.msg.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.dots i:nth-child(2) { animation-delay: .15s; } .msg.dots i:nth-child(3) { animation-delay: .3s; }
.msg.run { font: 12.5px/1.6 var(--mono); white-space: pre; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; }
.msg.run .cm { color: var(--muted); }
.msg.agent { align-self: flex-start; max-width: 92%; display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.agent .file { flex: none; font: 700 10px/1 -apple-system, sans-serif; color: #fff; background: #e5484d; border-radius: 5px; padding: 9px 5px; margin-top: 2px; }
.ai-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; counter-reset: ai; }
.ai-steps li { counter-increment: ai; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; color: var(--muted); }
.ai-steps li::before { content: counter(ai); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.ai-steps b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.ai-steps .cmd { margin: 10px 0 0; }
.ai-steps .cmd pre { font-size: 12.5px; padding: 8px 10px; }
.ai-steps .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Played each time a tab opens (site.js adds .shown) */
.shown .pop-in li { animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
.shown .web-thumb { animation: rise .5s ease both; }
.shown .msg.you { animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both .1s; }
.shown .msg.dots { animation: dots 1.1s ease both .6s; }
.shown .msg.run { animation: type .9s steps(28) both 1.7s; }
.shown .msg.agent { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both 2.7s; }
.shown .ai-steps li { animation: rise .45s ease both; animation-delay: calc(3.1s + var(--n, 0) * 120ms); }
.ai-steps li:nth-child(2) { --n: 1; } .ai-steps li:nth-child(3) { --n: 2; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes dots { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shown * { animation: none !important; } }
@media (max-width: 700px) {
  .web-split, .mac-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .web-split .chips li { white-space: normal; }
  .ai-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) { .panel { padding: 18px; } .tabs [role="tab"] { padding: 6px 12px; font-size: 14px; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 15px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; background: var(--bg-alt); }
.toc a.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.toc ol ol a { padding-left: 22px; font-size: 14px; }
.doc h1 { font-size: 40px; margin: 0 0 8px; }
.doc .intro { color: var(--muted); font-size: 19px; margin-bottom: 32px; }
.doc section { padding-top: 8px; margin-bottom: 40px; }
.doc h2 { font-size: 28px; margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc section:first-of-type h2 { border-top: 0; padding-top: 0; }
.doc h3 { font-size: 20px; margin: 28px 0 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.note {
  display: flex; gap: 12px; background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 16px;
}
.note.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.note strong { white-space: nowrap; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; align-items: center; margin: 0 0 16px; }
.opts { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 24px; }
.opts th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.opts td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.opts td:first-child { white-space: nowrap; }
.opts code { background: none; padding: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  .toc ol ol { display: none; }
  .top nav { gap: 14px; }
  .opts td:first-child { white-space: normal; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 64px; }
  .wrap { padding-inline: 20px; }

  .top-inner { padding: 0 16px; height: 52px; gap: 12px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 24px; height: 24px; }
  .top nav { gap: 16px; font-size: 14px; }
  .top nav .long { display: none; }
  .top nav .short { display: inline; }

  .hero { padding-block: 40px 32px; }
  .hero .icon { width: 96px; height: 96px; }
  .hero h1 { margin: 12px 0 6px; }
  .hero .tagline { margin-bottom: 14px; }
  .hero .lede { margin-bottom: 24px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 20px; }
  .hero .actions .btn { justify-content: center; }
  .hero .req { font-size: 13px; margin-top: 14px; }
  .cmd pre { font-size: 13px; padding: 10px 12px; }
  .cmd .copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmd .copy { padding: 6px 8px; }

  .demo-caption { align-items: flex-start; font-size: 13px; }

  .features { gap: 12px; padding: 0 0 40px; }
  .card { padding: 20px; }
  .card h3 { font-size: 18px; margin-top: 12px; }
  .card p { font-size: 15px; }

  .band { padding: 44px 0; }
  .band h2 { font-size: 28px; margin-bottom: 24px; }
  .steps { gap: 28px; }
  .steps h3 { font-size: 18px; }
  .center { margin-top: 32px; }

  footer { padding: 24px 0 36px; }
  footer .wrap { flex-direction: column; gap: 12px; }
  footer nav { gap: 8px 18px; }

  .docs { padding: 20px 20px 48px; }
  .doc h1 { font-size: 32px; }
  .doc .intro { font-size: 17px; margin-bottom: 24px; }
  .doc h2 { font-size: 24px; }
  .doc h3 { font-size: 18px; margin-top: 24px; }
  .note { padding: 12px 14px; font-size: 15px; }
  .opts { font-size: 14.5px; }
  .doc p code, .doc li code { overflow-wrap: anywhere; }
}

/* "Experimental" tag (Repeat & Crop) */
.badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: #ece4fb; color: #5b2bb5; }
@media (prefers-color-scheme: dark) { .badge { background: #2c2142; color: #c9b2ff; } }
.toc a.nowrap { white-space: nowrap; }
/* In the contents list: a small flask instead of the word, so the entry stays on one line. */
.badge-icon { padding: 2px 4px; margin-left: 4px; line-height: 0; vertical-align: -2px; }
.badge-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Home page demo (Repeat & Crop): a drawn app window, animated by site.js. Sizes in
   cqi (1% of the stage width) so it scales with the page. */
.stage {
  --d-canvas: #e9e9ee; --d-win: #f6f6f8; --d-line: rgb(0 0 0 / 0.1); --d-text: #1d1d1f; --d-dim: #6e6e73;
  --d-bar: rgb(255 255 255 / 0.92); --d-pop: #ffffff;
  --u: 1cqi;   /* one unit: 1% of the stage width, twice that on phones */
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 14px; background: var(--d-canvas); box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: calc(1.5 * var(--u)); color: var(--d-text); user-select: none;
}
@media (prefers-color-scheme: dark) {
  .stage { --d-canvas: #151517; --d-win: #232326; --d-line: rgb(255 255 255 / 0.1); --d-text: #f5f5f7; --d-dim: #a1a1a6;
    --d-bar: rgb(52 52 56 / 0.95); --d-pop: #2c2c30; }
}
.win { position: absolute; inset: 0; display: flex; flex-direction: column; }
.w-top { height: calc(6.5 * var(--u)); display: flex; align-items: center; gap: calc(2 * var(--u)); padding: 0 calc(2 * var(--u)); background: var(--d-win); border-bottom: 1px solid var(--d-line); }
.w-lights { display: flex; gap: calc(0.9 * var(--u)); }
.w-lights i { width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); border-radius: 50%; background: #ff5f57; }
.w-lights i:nth-child(2) { background: #febc2e; } .w-lights i:nth-child(3) { background: #28c840; }
.w-top b { font-size: calc(1.6 * var(--u)); }
.w-tools { margin-left: auto; display: flex; gap: calc(2.4 * var(--u)); color: var(--d-dim); font-size: calc(1.5 * var(--u)); }
.w-tools span { padding: calc(0.4 * var(--u)) calc(1 * var(--u)); border-radius: calc(0.8 * var(--u)); transition: background .2s, color .2s; }
.stage.s-export .w-export { background: var(--accent); color: #fff; }
.w-canvas { position: relative; flex: 1; }
.sheet { position: absolute; left: 50%; top: 5%; height: 74%; aspect-ratio: 210 / 297; transform: translateX(-50%);
  background: #fff; box-shadow: 0 calc(0.4 * var(--u)) calc(1.6 * var(--u)) rgb(0 0 0 / 0.18); }
.drop { position: absolute; inset: 30% 12%; display: grid; place-items: center; text-align: center; border: calc(0.25 * var(--u)) dashed #b9b9c0;
  border-radius: calc(1.2 * var(--u)); color: #8a8a92; font-size: calc(1.3 * var(--u)); transition: opacity .3s; }
.stage.s-dropped .drop { opacity: 0; }
.c { position: absolute; left: var(--x); top: var(--y); width: 40.476%; height: 18.519%; overflow: hidden;
  opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .35s cubic-bezier(.2,1.4,.4,1); transition-delay: calc(var(--i) * 70ms); }
.c img { position: absolute; inset: -5.45% -3.53%; width: 107.06%; height: 110.9%; }
.stage.s-dropped .c { opacity: 1; transform: none; }
/* Bleed: the cut line shows inside each card, with the artwork running past it. */
.c::after { content: ""; position: absolute; inset: 5.45% 3.53%; border: calc(0.18 * var(--u)) dashed transparent; transition: border-color .3s; }
.stage.s-bleed .c::after { border-color: rgb(255 255 255 / 0.9); box-shadow: 0 0 0 calc(0.12 * var(--u)) rgb(0 0 0 / 0.35); }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.marks path { fill: none; stroke: #111; stroke-width: 0.5; stroke-dasharray: 9; stroke-dashoffset: 9; transition: stroke-dashoffset .9s ease; }
.stage.s-marks .marks:not(.marks-item) path { stroke-dashoffset: 0; }
.marks-item path { stroke-dasharray: 3; stroke-dashoffset: 3; transition-duration: .6s; }
.stage.s-item .marks:not(.marks-item) path { stroke-dashoffset: 9; transition-duration: .3s; }
.stage.s-item .marks-item path { stroke-dashoffset: 0; }
/* Crop marks: the popover's list of styles */
.list { position: absolute; left: 50%; bottom: 12%; transform: translate(-50%, calc(0.8 * var(--u))); padding: calc(0.6 * var(--u)); border-radius: calc(1.2 * var(--u));
  background: var(--d-pop); border: 1px solid var(--d-line); box-shadow: 0 calc(0.8 * var(--u)) calc(2.4 * var(--u)) rgb(0 0 0 / 0.2);
  display: flex; flex-direction: column; min-width: calc(24 * var(--u)); opacity: 0; transition: opacity .2s, transform .2s; }
.list span { display: flex; align-items: center; gap: calc(0.8 * var(--u)); padding: calc(0.6 * var(--u)) calc(1 * var(--u)); border-radius: calc(0.7 * var(--u)); transition: background .15s, color .15s; }
.list i { font-style: normal; width: calc(1.4 * var(--u)); visibility: hidden; color: var(--accent); }
.stage.s-list .list { opacity: 1; transform: translate(-50%, 0); }
.stage:not(.s-item) .l-page i, .stage.s-item .l-item i { visibility: visible; }
.stage.s-hover .l-item { background: var(--accent); color: #fff; }
.stage.s-hover .l-item i { color: #fff; }
.bar { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); display: flex; gap: calc(0.6 * var(--u)); padding: calc(0.6 * var(--u));
  border-radius: calc(1.6 * var(--u)); background: var(--d-bar); box-shadow: 0 calc(0.4 * var(--u)) calc(1.4 * var(--u)) rgb(0 0 0 / 0.15); border: 1px solid var(--d-line); }
.bar span { width: calc(3.6 * var(--u)); height: calc(3.6 * var(--u)); display: grid; place-items: center; border-radius: calc(1 * var(--u)); color: var(--d-text); transition: background .2s, color .2s; }
.bar svg { width: calc(1.9 * var(--u)); height: calc(1.9 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stage[data-press="bleed"] .b-bleed, .stage[data-press="marks"] .b-marks { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pop { position: absolute; left: 50%; bottom: 12%; transform: translate(-50%, calc(0.8 * var(--u))); min-width: calc(22 * var(--u)); padding: calc(1.2 * var(--u)) calc(1.6 * var(--u)); border-radius: calc(1.2 * var(--u));
  background: var(--d-pop); border: 1px solid var(--d-line); box-shadow: 0 calc(0.8 * var(--u)) calc(2.4 * var(--u)) rgb(0 0 0 / 0.2);
  display: flex; justify-content: space-between; gap: calc(2 * var(--u)); opacity: 0; transition: opacity .2s, transform .2s; }
.pop span { color: var(--d-dim); }
.stage.s-pop .pop { opacity: 1; transform: translate(-50%, 0); }
.files { position: absolute; left: var(--fx, 6%); top: var(--fy, 38%); width: calc(12 * var(--u)); height: calc(8 * var(--u)); transition: left 1s ease-in-out, top 1s ease-in-out, opacity .3s; }
.files img { position: absolute; width: calc(9 * var(--u)); height: calc(6 * var(--u)); border-radius: calc(0.4 * var(--u)); box-shadow: 0 calc(0.4 * var(--u)) calc(1 * var(--u)) rgb(0 0 0 / 0.25); }
.files img:nth-child(2) { left: calc(1.2 * var(--u)); top: calc(1 * var(--u)); } .files img:nth-child(3) { left: calc(2.4 * var(--u)); top: calc(2 * var(--u)); }
.files { opacity: 0; transition-property: left, top, opacity; transition-duration: 1s, 1s, .4s; }
.stage.s-files .files { opacity: 1; }
.stage.s-files.s-dropped .files { opacity: 0; }
.cursor { position: absolute; width: calc(2.2 * var(--u)); left: var(--cx, 14%); top: var(--cy, 46%); transition: left .8s ease-in-out, top .8s ease-in-out, transform .12s; z-index: 5; }
.stage.s-click .cursor { transform: scale(0.85); }
.toast { position: absolute; left: 50%; top: 11%; transform: translate(-50%, -calc(1 * var(--u))); padding: calc(1 * var(--u)) calc(2 * var(--u)); border-radius: calc(1 * var(--u)); font-weight: 600;
  background: var(--d-pop); border: 1px solid var(--d-line); box-shadow: 0 calc(0.8 * var(--u)) calc(2.4 * var(--u)) rgb(0 0 0 / 0.2); opacity: 0; transition: opacity .3s, transform .3s; }
.stage.s-export .toast { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .stage { --u: 1.9cqi; aspect-ratio: 4 / 5; }
  .sheet { height: 70%; top: 6%; }
}
.stage.s-instant * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .stage * { transition: none !important; } }

/* Docs parts (General, Mac app, Command line, Web app, Developers) and screenshots in them */
.part { margin-top: 64px; }
.doc .part:first-of-type { margin-top: 8px; }
.part-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; padding-top: 20px; border-top: 2px solid var(--accent); }
.doc-shot { display: block; margin: 8px 0 28px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
.shot.framed { border: 1px solid var(--line); }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } }
.toc > ol > li + li { margin-top: 10px; }
.toc > ol > li > a { color: var(--text); font-weight: 600; }
.cmd.prompt pre { white-space: pre-wrap; }

/* Docs: Start here, the comparison table, and the agents quick start */
.part-intro { color: var(--muted); margin: -4px 0 20px; }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.pick { display: flex; flex-direction: column; padding: 18px 20px; color: var(--text); transition: border-color .15s, transform .15s; }
.pick:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.doc .pick h3 { margin: 0 0 6px; font-size: 18px; }
.pick p { font-size: 15px; margin-bottom: 12px; }
.pick span { margin-top: auto; color: var(--accent-text); font-weight: 600; font-size: 15px; }
.pick span::after { content: " →"; }
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
.table-scroll .opts { margin: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.compare thead th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.compare td:first-child { white-space: normal; }
.quick { padding-left: 22px; }
.quick > li { margin-bottom: 18px; }
.quick > li::marker { font-weight: 700; color: var(--accent-text); }
.quick .cmd { margin-top: 10px; }
@media (max-width: 600px) { .compare { min-width: 560px; } .compare th[scope="row"] { white-space: normal; } }
