@import url("tokens.css");

/* Fonts (self-hosted, SIL Open Font License; see /fonts/OFL.txt) */
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Omacus — omacus.com */

/* Fallbacks sized like Inter and JetBrains Mono, so swapping fonts doesn't move text. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.06%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Mono Fallback";
  src: local("Courier New"), local("Liberation Mono"), local("DejaVu Sans Mono");
  size-adjust: 99.98%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  --sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter Fallback", var(--sans);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", "Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-hi);
}

code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

::selection {
  background: rgba(240, 161, 42, 0.32);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.scrolled {
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 18px/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .btn {
  margin-left: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Three bars that fold into an ×. */
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.42s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 13px;
}

.menu-toggle span:nth-child(2) {
  top: 18.5px;
}

.menu-toggle span:nth-child(3) {
  top: 24px;
}

.site-header.open .menu-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.site-header.open .menu-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Phones and narrow windows: the links fold into a sheet under the header;
   Download stays in view. Updates makes seven links, so this starts a little
   sooner than the rest of the layout. */
@media (max-width: 1020px) {
  .menu-toggle {
    display: block;
  }

  .nav .btn {
    margin-left: 0;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100dvh - 64px);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.42s;
  }

  .site-header.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s ease,
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  .nav-links a {
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    font-family: var(--display);
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    transform: translateY(-6px);
    transition:
      opacity 0.3s ease,
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links a:hover {
    background: none;
  }

  /* Links settle in one after another. */
  .site-header.open .nav-links a {
    opacity: 1;
    transform: none;
  }

  .site-header.open .nav-links a:nth-child(1) { transition-delay: 0.04s; }
  .site-header.open .nav-links a:nth-child(2) { transition-delay: 0.08s; }
  .site-header.open .nav-links a:nth-child(3) { transition-delay: 0.12s; }
  .site-header.open .nav-links a:nth-child(4) { transition-delay: 0.16s; }
  .site-header.open .nav-links a:nth-child(5) { transition-delay: 0.2s; }
  .site-header.open .nav-links a:nth-child(6) { transition-delay: 0.24s; }
  .site-header.open .nav-links a:nth-child(7) { transition-delay: 0.28s; }

  .site-header.open {
    background: var(--bg);
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .nav-links,
  .nav-links a {
    transition: none !important;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font: 600 14.5px/1 var(--sans);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  color: var(--text);
  border-color: var(--line-hover);
  background: var(--edge);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 192, 97, 0.25) inset, 0 8px 28px -10px rgba(240, 161, 42, 0.6);
}

.btn.primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--accent-ink);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  /* faint grid fading out from the top */
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, var(--black) 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, var(--black) 30%, transparent 75%);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 340px;
  width: min(1100px, 100vw);
  height: 640px;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.7);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.eyebrow .tag {
  flex: none;
}

.eyebrow .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent-hi);
  font: 600 12px/1.6 var(--mono);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  font-weight: 600;
}

.hero h1 {
  margin: 26px auto 18px;
  font-size: clamp(44px, 7.4vw, 88px);
  max-width: 12ch;
}

em.serif,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-hi);
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--text-2);
  line-height: 1.55;
}

/* Install box */

.install {
  margin: 34px auto 0;
  max-width: 560px;
  text-align: left;
}

.os-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 10px;
}

.os-tabs button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 13.5px/1 var(--sans);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.os-tabs button:hover {
  color: var(--text);
}

.os-tabs button[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-raise), var(--bg-raise));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px var(--black);
  font-family: var(--mono);
  font-size: 15px;
}

.cmd .prompt {
  color: var(--accent);
  user-select: none;
}

.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--text);
  font-size: 14.5px;
}

.cmd code::-webkit-scrollbar {
  display: none;
}

.copy {
  flex: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy:hover {
  color: var(--text);
  border-color: var(--line-hover);
}

.copy.done {
  color: var(--accent-hi);
  border-color: rgba(240, 161, 42, 0.4);
}

.copy svg {
  width: 14px;
  height: 14px;
}

.install-alt {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.install-alt a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
}

.install-alt a:hover {
  color: var(--accent-hi);
  border-color: var(--accent);
}

.os-panel[hidden] {
  display: none;
}

.dl-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- The live demo window ---------- */

.stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 1080px;
  perspective: 1800px;
}

.window {
  --fs: 15px;
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(240, 161, 42, 0.35);
  text-align: left;
  font-family: var(--mono);
  font-size: var(--fs);
  transform: rotateX(4deg);
  transform-origin: 50% 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage.in .window {
  transform: none;
}

.win-side {
  background: var(--app-side);
  border-right: 1px solid var(--edge);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.win-side .side-head {
  display: flex;
  justify-content: space-between;
  color: var(--app-comment);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 0 4px 10px;
}

.win-side .sheet {
  position: relative;
  padding: 7px 10px 7px 14px;
  border-radius: 6px;
  color: var(--app-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s, color 0.3s;
}

.win-side .sheet.active {
  background: var(--app-sel);
  color: var(--app-fg);
}

.win-side .sheet.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--app-accent);
}

.win-side .side-foot {
  margin-top: auto;
  color: var(--app-comment);
  font-size: 11px;
  padding: 0 4px;
}

.win-main {
  position: relative;
  padding: 22px 26px;
  overflow: hidden;
}

.win-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.75;
}

.win-lines li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 1.75em;
  white-space: pre;
}

.win-lines .src {
  color: var(--app-fg);
  overflow: hidden;
  text-overflow: clip;
}

.win-lines .res {
  color: var(--app-accent);
  flex: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s;
}

.win-lines .res.show {
  opacity: 1;
  transform: none;
}

.t-head { color: var(--app-accent); }
.t-com { color: var(--app-comment); }
.t-label { color: var(--app-dim); }
.t-num { color: var(--app-fg); }
.t-kw { color: var(--app-fg); }
.t-var { color: var(--app-var); }
.t-op { color: var(--app-dim); }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.25em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: var(--app-accent);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.popup {
  position: absolute;
  z-index: 2;
  min-width: 150px;
  padding: 4px;
  border-radius: 7px;
  background: var(--app-side);
  border: 1px solid var(--app-sel);
  box-shadow: 0 14px 30px -12px var(--black);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.popup.show {
  opacity: 1;
  transform: none;
}

.popup div {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--app-fg);
}

.popup div.sel {
  background: var(--app-sel);
  color: var(--app-accent);
}

/* The desktop app's Share and ⋯ above the sheet. */
.win-bar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: -10px -6px 6px 0;
  color: var(--app-comment);
  font: 500 12px var(--sans);
}

.win-dots {
  letter-spacing: 1px;
}

.modes svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.win-side .sheet {
  cursor: pointer;
}

.win-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--app-bg);
  animation: frame-in 0.5s ease both;
}

@keyframes frame-in {
  from {
    opacity: 0;
  }
}

.stage.live .win-bar {
  display: none;
}

/* Watch / Try it yourself, above the window. */
.modes {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.8);
  backdrop-filter: blur(8px);
}

.modes button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.modes button:hover {
  color: var(--text);
}

.modes button[aria-pressed="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2);
}

.modes button[data-mode="try"][aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px rgba(240, 161, 42, 0.6);
}

/* While the replay plays, Try it yourself glows now and then to be noticed. */
.stage:not(.live) .modes button[data-mode="try"] {
  color: var(--accent-hi);
  animation: try-glow 3.2s ease-in-out 2s infinite;
}

@keyframes try-glow {
  50% {
    box-shadow: 0 0 0 1px rgba(240, 161, 42, 0.5), 0 0 22px -4px rgba(240, 161, 42, 0.55);
  }
}

.modes svg {
  width: 14px;
  height: 14px;
}

.modes button[data-mode="watch"] svg {
  fill: currentColor;
  stroke: none;
}

.stage-caption {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 760px) {
  .window {
    grid-template-columns: 1fr;
    height: 470px;
    --fs: 13px;
  }

  .win-side {
    display: none;
  }

  .win-main {
    padding: 18px 16px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 120px 0 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 18px;
}

/* Film */

.film {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px var(--black), 0 0 0 1px rgba(0, 0, 0, 0.5);
  background: var(--bg-deep);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--bg-raise);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}

.feature:hover {
  background: var(--panel);
}

.feature h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature .eg {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.feature .eg div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--app-bg);
  border: 1px solid var(--line-faint);
  white-space: nowrap;
}

.feature .eg span {
  color: var(--app-fg);
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature .eg b {
  color: var(--app-accent);
  font-weight: 400;
  flex: none;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .features .feature {
    flex: 0 0 min(85vw, 320px);
    scroll-snap-align: start;
  }
}

/* Split rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.split.flip {
  grid-template-columns: 1.25fr 1fr;
}

.split.flip .split-text {
  order: 2;
}

.split h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.split p {
  color: var(--text-2);
  font-size: 17px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc061' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.checks b {
  color: var(--text);
  font-weight: 600;
}

.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px var(--black), 0 0 0 1px rgba(0, 0, 0, 0.5);
  background: var(--panel);
}

@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split.flip .split-text {
    order: 0;
  }
}

/* Theme gallery */

.themes {
  display: grid;
  gap: 22px;
}

.theme-stage {
  position: relative;
  aspect-ratio: 1470 / 900;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 110px -45px var(--black);
  background: var(--panel);
}

.theme-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.theme-stage img.on {
  opacity: 1;
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.theme-picker button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-raise);
  color: var(--text-2);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.theme-picker button:hover {
  color: var(--text);
  border-color: var(--line-hover);
}

.theme-picker button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(240, 161, 42, 0.07);
}

.swatch {
  display: inline-flex;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.swatch i {
  flex: 1;
}

/* Keyboard section */

.keys {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin-top: 26px;
}

.keys div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .keys {
    grid-template-columns: 1fr;
  }
}

/* Terminal */

.terminal {
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-sink);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px var(--black);
}

.terminal .bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-chip);
}

.terminal .bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--track);
}

.terminal pre {
  margin: 0;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  overflow-x: auto;
}

.terminal .p {
  color: var(--accent);
}

.terminal .o {
  color: var(--text);
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 56px;
}

.faq h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.faq code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text-2);
  white-space: nowrap;
}

.faq-more {
  margin-top: 40px;
  color: var(--muted);
}

.faq-more a {
  color: var(--accent-hi);
  border-bottom: 1px solid rgba(240, 161, 42, 0.35);
}

@media (max-width: 760px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* Download cards */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dl {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-sink));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The visitor's own system, first (site.js). */
.dl.yours {
  border-color: rgba(240, 161, 42, 0.45);
  box-shadow: 0 0 0 1px rgba(240, 161, 42, 0.12), 0 18px 50px -30px var(--accent-glow);
}

.dl .or-ps {
  margin: 2px 0 -6px;
  font-size: 14px;
  color: var(--muted);
}

.dl .yours-tag {
  margin-left: auto;
  font: 500 12px/1 var(--mono, monospace);
  color: var(--accent);
}

.dl header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dl header svg {
  width: 26px;
  height: 26px;
  color: var(--text-2);
}

.dl h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.dl h3 small {
  margin-left: 6px;
  color: var(--muted);
  font: 500 13px var(--sans);
  letter-spacing: 0;
}

.dl p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.dl .cmd {
  font-size: 13.5px;
  box-shadow: none;
}

.dl .cmd code {
  font-size: 13px;
}

.dl .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
}

.note b {
  color: var(--text-2);
  font-weight: 600;
}

@media (max-width: 860px) {
  .downloads {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* /download/ */

.download-page {
  padding-top: 72px;
  padding-bottom: 40px;
}

.download-page .section-head h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.download-page .dl {
  scroll-margin-top: 96px;
}

.download-page .dl:target {
  border-color: var(--accent);
}

.release-facts {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0;
}

.release-facts h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.release-facts ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 1.7;
}

.release-facts a {
  color: var(--accent);
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent-hi);
  font-size: 14px;
}

.feature-link svg {
  width: 14px;
  height: 14px;
}

/* The quieter links on most feature cards: to a guide or a docs section. */
.feature-link.quiet {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s;
}

.feature-link.quiet:hover,
.feature:hover .feature-link.quiet {
  color: var(--accent-hi);
}

.feature-link svg {
  transition: transform 0.2s;
}

.feature-link:hover svg {
  transform: translateX(3px);
}

.cta-row {
  margin-top: 28px;
}

/* Privacy: three cards, one per place a sheet can live. */
.privacy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.privacy article {
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}

.privacy svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent-hi);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.privacy p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.privacy-note {
  margin: 26px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* "or Open the web app" under the hero's installer. */
.try-web {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}

.try-web .or {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, 80%);
  color: var(--faint);
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.try-web .or::before,
.try-web .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

/* /download: the web app first, with a note for phones, then the downloads. */
.try-web.web-first {
  margin: 0 auto 44px;
}

.phone-note {
  display: none;
  max-width: 460px;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  .phone-note {
    display: block;
  }
}

.cta .try-web {
  margin: 30px 0 6px;
}

.web-app-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg-raise);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.web-app-link:hover {
  border-color: rgba(240, 161, 42, 0.5);
  background: var(--panel);
  transform: translateY(-1px);
}

.web-app-link > svg:first-child {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 9px;
  background: var(--accent-glow);
  fill: none;
  stroke: var(--accent-hi);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.web-app-link span {
  display: grid;
  gap: 1px;
}

.web-app-link b {
  font-size: 15px;
  font-weight: 600;
}

.web-app-link small {
  color: var(--muted);
  font-size: 13px;
}

.web-app-link .arrow {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  color: var(--accent-hi);
  transition: transform 0.2s;
}

.web-app-link:hover .arrow {
  transform: translateX(3px);
}

/* Closing CTA */

.cta {
  margin-top: 140px;
  padding: 72px 32px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(240, 161, 42, 0.15), transparent 70%),
    var(--bg-raise);
}

.cta h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.cta p {
  color: var(--text-2);
  margin: 14px auto 30px;
  max-width: 520px;
  font-size: 18px;
}

#download .cta {
  margin-top: 0;
}

.cta .platforms {
  justify-content: center;
  margin-top: 22px;
}

.cta .more {
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  font-size: 14.5px;
}

.cta .more a {
  color: var(--muted);
}

.cta .more a:hover {
  color: var(--text);
}

.cta .cmd {
  max-width: 520px;
  margin: 0 auto 18px;
  text-align: left;
}

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

.site-footer {
  margin-top: 110px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Brand and tagline on the left, links on the right; the links wrap in place. */
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 6px;
  align-items: center;
}

.site-footer .brand {
  grid-column: 1;
}

.site-footer .wrap > span {
  grid-column: 1;
  grid-row: 2;
}

.site-footer nav {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px 22px;
  flex-wrap: wrap;
}

.site-footer a:hover {
  color: var(--text);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .window,
  .win-lines .res,
  .theme-stage img {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }

  .caret {
    animation: none;
  }
}

/* ---------- Docs ---------- */

.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 0;
}

.docs-nav {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14.5px;
}

.docs-nav p {
  margin: 22px 0 6px;
  color: var(--faint);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-nav p:first-child {
  margin-top: 0;
}

.docs-nav-toggle {
  display: none;
}

.docs-nav a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 7px;
  color: var(--muted);
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav a.on {
  color: var(--accent-hi);
  background: rgba(240, 161, 42, 0.07);
}

.prose {
  max-width: 780px;
  font-size: 16.5px;
  color: var(--text-2);
}

.prose h1 {
  font-size: clamp(38px, 5vw, 52px);
  color: var(--text);
  margin-bottom: 14px;
}

.prose h2 {
  font-size: 30px;
  color: var(--text);
  margin: 72px 0 14px;
  padding-top: 8px;
}

.prose h3 {
  font-size: 19.5px;
  color: var(--text);
  margin: 36px 0 10px;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

.prose li {
  margin: 6px 0;
}

.prose a {
  color: var(--accent-hi);
  border-bottom: 1px solid rgba(240, 161, 42, 0.35);
}

.prose a:hover {
  border-bottom-color: var(--accent-hi);
}

.prose strong {
  color: var(--text);
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86em;
}

.prose pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg-ink);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

/* Code with notes beside it: one grid row per line, notes in their own column. */
.prose .annot {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 3ch;
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg-ink);
  border: 1px solid var(--line);
  overflow-x: auto;
  font: 14px/1.7 var(--mono);
  color: var(--text);
}

.prose .annot code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  white-space: pre;
}

.prose .annot code.full {
  grid-column: 1 / -1;
}

.prose .annot .c {
  color: var(--faint);
  white-space: pre;
}

.prose pre .c {
  color: var(--faint);
}

.prose .lead {
  font-size: 19px;
  color: var(--text-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}

.prose th {
  text-align: left;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose table.ex td code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--app-fg);
  font-size: 14px;
}

.prose table.ex td.ans {
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--app-accent);
  white-space: nowrap;
}

.prose table.ex th:last-child {
  text-align: right;
}

.muted {
  color: var(--faint);
}

.callout {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(240, 161, 42, 0.25);
  background: rgba(240, 161, 42, 0.06);
  font-size: 15.5px;
}

.callout b {
  color: var(--accent-hi);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0 24px;
  counter-reset: step;
}

.flow div {
  position: relative;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.flow div::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font: 500 12px/1 var(--mono);
  color: var(--accent);
  margin-bottom: 8px;
}

.flow b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .docs-nav {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }

  .docs-nav p {
    width: 100%;
    margin: 12px 0 4px;
  }

  .docs-nav a {
    margin-left: 0;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose table.ex td.ans {
    white-space: normal;
  }
}

/* ---------- Guides and use cases ---------- */

.page {
  padding-top: 40px;
}

.page.has-toc {
  display: grid;
  grid-template-columns: minmax(0, 780px) 200px;
  justify-content: space-between;
  column-gap: 56px;
}

.page.has-toc > * {
  grid-column: 1;
}

.page.has-toc > .cta {
  grid-column: 1 / -1;
}

.page.has-toc > .toc {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.toc p {
  margin: 0 0 8px;
  color: var(--faint);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc a {
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.toc a:hover {
  color: var(--text);
}

.toc a.on {
  color: var(--accent-hi);
  border-left-color: var(--accent);
}

@media (max-width: 1000px) {
  .page.has-toc {
    display: block;
  }

  .toc {
    display: none;
  }
}

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 14px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--text);
}

.page-body .kicker {
  display: block;
  margin-bottom: 14px;
}

.page-body h1 {
  font-size: clamp(36px, 5vw, 54px);
}

.page-body .lead code {
  font-size: 0.82em;
}

.guide-link {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  font-size: 15px;
}

.note-line {
  margin-top: -8px;
  color: var(--faint);
  font-size: 14px;
}

/* A sheet, drawn like the app */
.sheet-card {
  margin: 8px 0 22px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--app-bg);
  box-shadow: 0 30px 70px -40px var(--black);
  font: 14px/1.75 var(--mono);
}

.sheet-card figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--app-side);
  font: 500 12.5px/1 var(--sans);
  color: var(--app-dim);
}

.sheet-card figcaption i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--track);
}

.sheet-card figcaption span {
  margin-left: 8px;
}

/* "Open in the web app": the sheet, live, at app.omacus.com. */
.sheet-card .open-sheet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--accent-hi);
  font-size: 12.5px;
  white-space: nowrap;
}

.sheet-card .open-sheet svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.sheet-card .open-sheet:hover svg {
  transform: translateX(3px);
}

.sheet-lines {
  margin: 0;
  padding: 16px 20px;
  list-style: none;
}

.sheet-lines li {
  display: flex;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 1.75em;
  margin: 0;
}

.sheet-lines .src {
  color: var(--app-fg);
  white-space: pre-wrap;
}

.sheet-lines .res {
  flex: none;
  margin-left: auto;
  color: var(--app-accent);
  white-space: nowrap;
}

.sheet-card .t-com {
  color: var(--ink-dim);
}

.shot-figure {
  margin: 8px 0 24px;
}

.shot-figure img {
  border-radius: 12px;
  border: 1px solid var(--line-2);
}

/* Cards linking to guides */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-sink));
  transition: border-color 0.2s, transform 0.2s;
}

.prose .guide-card {
  border-bottom: 1px solid var(--line);
}

.guide-card:hover {
  border-color: rgba(240, 161, 42, 0.45);
  transform: translateY(-2px);
}

.guide-card b {
  color: var(--text);
  font: 600 17px/1.3 var(--display);
  letter-spacing: -0.015em;
}

.guide-card b::after {
  content: " →";
  color: var(--accent);
}

.guide-card span {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.related {
  max-width: 780px;
  padding: 72px 0 0;
}

.related h2 {
  font-size: 24px;
  margin-bottom: 18px;
}

@media (max-width: 620px) {
  .page {
    padding-top: 24px;
  }

  .sheet-card {
    font-size: 12.5px;
  }

  .sheet-lines {
    padding: 12px 14px;
  }

  .sheet-lines li {
    flex-wrap: wrap;
  }
}

/* ---------- 404 / redirects ---------- */

.center-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.center-page h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 12px;
}

.center-page p {
  color: var(--text-2);
}

@media (max-width: 480px) {
  .cmd {
    gap: 8px;
    padding-left: 14px;
  }

  .cmd .prompt {
    display: none;
  }

  .cmd code,
  .dl .cmd code {
    font-size: 12.5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .copy {
    padding: 9px;
    font-size: 0;
    gap: 0;
  }

  .copy svg {
    width: 15px;
    height: 15px;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 620px) {
  /* The version pill keeps to one line; the platforms are listed just below. */
  .eyebrow {
    white-space: nowrap;
  }

  .eyebrow-more {
    display: none;
  }

  section {
    padding-top: 88px;
  }

  .hero h1 {
    letter-spacing: -0.035em;
  }

  .window {
    height: 400px;
    --fs: 12px;
  }

  .win-lines li {
    gap: 14px;
  }

  /* Example cards scroll sideways; each example line scrolls instead of wrapping. */
  .feature {
    padding: 24px 20px 22px;
  }

  .feature .eg {
    font-size: 13px;
    overflow-x: auto;
  }

  .feature .eg div {
    flex-wrap: nowrap;
    gap: 2px 12px;
  }

  .feature .eg b {
    margin-left: auto;
  }

  /* Screenshots: crop to the part worth reading (sheet without the sidebar, or the
     help window) so the text is about 30% larger. Offsets are in source pixels. */
  .shot {
    aspect-ratio: 1155 / 540;
  }

  .shot img {
    width: calc(100% * 1470 / 1155);
    max-width: none;
    margin-left: calc(-100% * 315 / 1155);
  }

  .shot.help {
    aspect-ratio: 1140 / 810;
  }

  .shot.help img {
    width: calc(100% * 1470 / 1140);
    margin: calc(-100% * 45 / 1140) 0 0 calc(-100% * 165 / 1140);
  }

  .theme-stage {
    aspect-ratio: 1155 / 540;
  }

  .theme-stage img {
    inset: 0 auto auto calc(-100% * 315 / 1155);
    width: calc(100% * 1470 / 1155);
    max-width: none;
    height: auto;
  }

  .theme-picker {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
  }

  .theme-picker::-webkit-scrollbar {
    display: none;
  }

  .theme-picker button {
    flex: none;
  }

  .terminal pre {
    padding: 16px;
    font-size: 12.5px;
  }

  .dl {
    padding: 22px 18px;
  }

  .dl h3 small {
    display: block;
    margin: 4px 0 0;
  }

  .cta {
    margin-top: 100px;
    padding: 56px 18px;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .site-footer nav {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
    gap: 14px 20px;
  }

  /* Docs: a sticky bar naming the section you're in; tap it for the full list. */
  .docs {
    padding-top: 0;
  }

  .docs-nav {
    position: sticky;
    top: 64px;
    z-index: 40;
    display: block;
    max-height: none;
    margin: 0 calc(-1 * var(--gutter)) 24px;
    padding: 0 var(--gutter);
    background: rgba(9, 9, 9, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .docs-nav > p,
  .docs-nav > a {
    display: none;
  }

  .docs-nav.open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-bottom: 16px;
  }

  .docs-nav.open > p {
    display: block;
    margin: 18px 0 6px;
  }

  .docs-nav.open > a {
    display: block;
    padding: 9px 10px;
    margin: 0 -10px;
  }

  .docs-nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .docs-nav-toggle span {
    color: var(--faint);
    font: 500 11.5px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .docs-nav-toggle b {
    flex: 1;
    font-weight: 600;
    color: var(--accent-hi);
  }

  .docs-nav-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: transform 0.2s;
  }

  .docs-nav.open .docs-nav-toggle svg {
    transform: rotate(180deg);
  }

  .docs-nav a.on {
    border-color: rgba(240, 161, 42, 0.35);
  }

  .prose {
    font-size: 16px;
  }

  .prose h1 {
    margin-top: 12px;
  }

  .prose h2 {
    margin-top: 56px;
    font-size: 27px;
    scroll-margin-top: 130px;
  }

  .prose h3 {
    scroll-margin-top: 130px;
  }

  .prose :not(pre) > code {
    overflow-wrap: break-word;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .prose pre {
    font-size: 13px;
    padding: 14px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  /* Notes drop under their line. */
  .prose .annot {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
  }

  .prose .annot code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding-top: 8px;
  }

  .prose .annot code:first-child {
    padding-top: 0;
  }

  .prose .annot .c {
    white-space: normal;
    font-size: 12.5px;
  }

  /* Where files live: one card per row, platforms labelled. */
  .prose table.files,
  .prose table.files tbody,
  .prose table.files tr,
  .prose table.files td {
    display: block;
  }

  .prose table.files thead {
    display: none;
  }

  .prose table.files tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .prose table.files td {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 3px 0;
    border: 0;
  }

  .prose table.files td.what {
    display: block;
    padding-bottom: 6px;
    color: var(--text);
    font-weight: 600;
  }

  .prose table.files td[data-os]::before {
    content: attr(data-os);
    font: 500 11px/1 var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .prose table.files td code {
    overflow-wrap: anywhere;
  }

  /* Two-column tables (shortcuts, source map): give the second column more room. */
  .prose table:not(.ex):not(.files) td:first-child {
    width: 46%;
  }

  /* Example tables become stacked rows: what you type, then the answer under it. */
  .prose table.ex thead {
    display: none;
  }

  .prose table.ex,
  .prose table.ex tbody,
  .prose table.ex tr,
  .prose table.ex td {
    display: block;
  }

  .prose table.ex tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .prose table.ex td {
    padding: 0;
    border: 0;
  }

  .prose table.ex td code {
    font-size: 13.5px;
  }

  .prose table.ex td.ans {
    margin-left: auto;
    font-size: 13.5px;
    white-space: normal;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Updates (omacus.com/updates) ---------- */
/* Colors come from site/css/tokens.css, including the light paper palette.
   Spacing, radii, and motion use that file's scale. */

html[data-page="updates"] .site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

html[data-page="updates"] .btn.primary {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-hi) 28%, transparent) inset,
    var(--shadow-md);
}

html[data-page="updates"] .nav a:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.updates-page .toc {
  max-height: calc(100dvh - 120px);
  overflow: auto;
}

.updates-hero {
  max-width: 40rem;
  margin-bottom: var(--space-2);
}

.updates-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--text);
  margin: 0 0 var(--space-4);
}

.updates-lead {
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.updates-tools {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.updates-tools a {
  color: var(--text-2);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.updates-tools a:hover {
  color: var(--accent-hi);
}

.timeline {
  list-style: none;
  margin: calc(var(--space-6) * 2) 0 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  column-gap: var(--space-6);
  padding-bottom: calc(var(--space-6) * 2);
  scroll-margin-top: 96px;
}

.entry-meta {
  text-align: right;
  padding-top: var(--space-1);
}

.entry-meta time {
  display: block;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.4;
  white-space: nowrap;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--space-6);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  color: var(--accent-hi);
  font: 600 var(--type-caption) / 1.4 var(--mono);
  border-bottom: 0;
}

.version-pill:hover {
  color: var(--accent-hi);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.pre {
  display: inline-block;
  margin-left: var(--space-2);
  color: var(--faint);
  font: 500 var(--type-caption) / 1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-body {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 var(--space-6);
}

.entry-body::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  left: -5px;
  top: 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.entry:last-child {
  padding-bottom: 0;
}

.entry:last-child .entry-body {
  border-left-color: transparent;
}

.entry h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(var(--type-display), 2.5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.notes {
  margin-top: var(--space-4);
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.65;
}

.notes p,
.fix-copy p {
  margin: 0 0 var(--space-3);
}

.notes ul,
.fix-copy ul {
  margin: 0 0 12px;
  padding-left: 1.15em;
}

.notes li,
.fix-copy li {
  margin: 7px 0;
}

.notes li ul,
.fix-copy li ul {
  margin-top: 6px;
  margin-bottom: 0;
}

.notes a,
.fix-copy a,
.entry h2 a {
  color: var(--accent-hi);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.notes a:hover,
.fix-copy a:hover,
.entry h2 a:hover {
  border-bottom-color: var(--accent-hi);
}

.notes strong,
.fix-copy strong {
  color: var(--text);
  font-weight: 600;
}

.notes code,
.fix-copy code,
.entry h2 code {
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86em;
}

.notes figure,
.fix-copy figure {
  margin: 18px 0 8px;
}

.notes img,
.fix-copy img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.notes figcaption,
.fix-copy figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.fix-group {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.fix-group summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--text-2);
  font-size: var(--type-body);
  list-style: none;
}

.fix-group summary::-webkit-details-marker {
  display: none;
}

.fix-group summary::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform var(--dur) var(--ease);
}

.fix-group[open] summary::before {
  transform: rotate(45deg);
}

.fix-range,
.fix-when {
  color: var(--faint);
  font: 500 var(--type-caption) / 1.4 var(--mono);
}

.fixes {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.fixes li {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.fix-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-2);
}

.fix-line time {
  color: var(--faint);
  font-size: var(--type-caption);
}

.fix-copy {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.entry-links {
  margin: var(--space-4) 0 0;
  color: var(--faint);
  font-size: var(--type-caption);
}

.entry-links a {
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
}

.entry-links a:hover {
  color: var(--text);
}

.updates-count {
  margin: calc(var(--space-6) + var(--space-4)) 0 0;
  color: var(--faint);
  font-size: var(--type-caption);
}

@media (max-width: 720px) {
  .entry {
    grid-template-columns: 1fr;
    row-gap: var(--space-2);
    padding-bottom: calc(var(--space-6) + var(--space-4));
    border-left: 1px solid var(--line);
    padding-left: var(--space-4);
  }

  .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    text-align: left;
  }

  .entry-meta time {
    display: inline;
    margin-top: 0;
  }

  .entry-body {
    border-left: 0;
    padding-left: 0;
  }

  .entry-body::before {
    display: none;
  }

  .entry:last-child {
    border-left-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fix-group summary::before {
    transition: none;
  }
}
