/* One typeface, the one Boltbar's interface uses: the system monospace. */
:root {
  --bg: #161617;
  --text: #e8e7e4;
  --dim: #8e8e93;
  --rule: rgba(255, 255, 255, 0.1);
  --accent: #f2c46d;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --column: 760px;
  --gutter: 24px;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
code {
  font: inherit;
}
kbd {
  font: inherit;
  padding: 0 5px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  white-space: nowrap;
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* A flag breaks at its dashes otherwise. */
.nowrap {
  white-space: nowrap;
}

/* Layout: one narrow column; the trailer gets a little more room. */
.top,
main > section,
.bottom {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}
.brand img {
  display: block;
}
.top nav {
  display: flex;
  gap: 20px;
}
.top nav a {
  color: var(--dim);
  text-decoration: none;
}
.top nav a:hover {
  color: var(--text);
}
main > section {
  padding: 56px 0 8px;
}
h1,
h2 {
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
}
h2 {
  font-size: 20px;
}
p {
  margin: 0 0 16px;
}
.intro {
  padding-top: 72px;
}
.intro > p:first-of-type {
  max-width: 620px;
  color: #c9c7c2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 28px;
}
.download {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #1b1405;
  font-weight: 600;
  text-decoration: none;
}
.download:hover {
  color: #1b1405;
  background: #f6d38f;
}
.command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 13px;
}
.command code {
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.command button {
  flex: none;
  color: var(--dim);
}
.command button:hover {
  color: var(--accent);
}
.command.block {
  display: flex;
}
/* The easy way in: the Homebrew command, outlined like the button it replaces. */
.command.primary {
  border-color: var(--accent);
  padding: 9px 12px;
  font-size: 14px;
}
.command.primary button {
  color: var(--accent);
}

.film {
  position: relative;
  width: min(1040px, 100% - 2 * var(--gutter));
  margin: 48px auto 0;
}
.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: #000;
}
.pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 12px;
}

/* Simulator */
.playground {
  margin-top: 24px;
}
.stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #0e0e0f;
}
.bar-slot {
  container: bar / inline-size;
  display: flex;
  justify-content: center;
  width: 100%;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.stage[data-visible="false"] .bar-slot {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}
.hidden-note {
  position: absolute;
  inset: auto 24px 64px;
  display: none;
  color: var(--dim);
  text-align: center;
}
.hidden-note:hover {
  color: var(--text);
}
.stage[data-visible="false"] .hidden-note {
  display: block;
}
.under {
  margin-top: 14px;
  font-size: 13px;
}
.under p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 6px;
}
.under button {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.under button:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.themes button[aria-checked="true"] {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* The key table doubles as the feature list, ticked as you try each key. */
.keys {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-size: 14px;
}
.keys tr {
  border-top: 1px solid var(--rule);
}
.keys tr:last-child {
  border-bottom: 1px solid var(--rule);
}
.keys th,
.keys td {
  padding: 10px 0;
  vertical-align: top;
  text-align: left;
}
.keys th {
  width: 150px;
  padding-right: 16px;
  font-weight: 400;
  white-space: nowrap;
}
.keys td {
  color: #c9c7c2;
}
.keys td::after {
  content: "";
  float: right;
  width: 7px;
  height: 7px;
  margin: 7px 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.keys tr.done td::after {
  border-color: var(--accent);
  background: var(--accent);
}
.keys tr.done th kbd {
  border-color: var(--accent);
  color: var(--accent);
}

.also {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  margin: 0;
}
.also dt {
  color: var(--dim);
}
.also dd {
  margin: 0;
  color: #c9c7c2;
}

.lights {
  margin-bottom: 18px;
}
.lights dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.light.look { background: #8e8e93; }
.light.ask { background: #a0ccb8; }
.light.edit { background: #e5bb88; }
.light.full { background: #e79891; }
.also code {
  color: var(--text);
}

.bottom {
  margin-top: 72px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--dim);
}
.bottom p {
  margin: 0;
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 14px;
  }
  .stage {
    min-height: 500px;
    padding: 16px 8px;
  }
  .keys th {
    width: 104px;
  }
  .also {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .also dd {
    margin-bottom: 12px;
  }
  /* iOS zooms into fields set below 16px. */
  .bb .bb-input,
  .bb .bb-search-input {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .brand .dim {
    display: none;
  }
  .top nav {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar-slot {
    transition: none;
  }
}
