/* Shared intro frame for the product sites.
   The works rail sits on the page: a short tick list of Beastry's own products,
   plus a quiet mark back to the brand home. It does not restyle the product. */

body.beastry-with-rail {
  padding-left: 208px;
}

.beastry-rail {
  --beastry-rail-tick: 16px;
  --beastry-rail-icon: 28px;
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  bottom: 0;
  width: 208px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 1.2rem 0.85rem 1.4rem 0.9rem;
  overflow: auto;
  background: var(--bg, Canvas);
  color: CanvasText;
  border: 0;
  box-shadow: none;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

.beastry-rail a {
  color: inherit;
  letter-spacing: 0;
  text-decoration: none;
}

.beastry-rail a:hover {
  text-decoration: none;
}

.beastry-home,
.beastry-rail nav a,
.beastry-rail nav a::before {
  transition:
    translate 200ms cubic-bezier(0.4, 0, 0.2, 1),
    color 200ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 200ms cubic-bezier(0.4, 0, 0.2, 1),
    width 200ms cubic-bezier(0.4, 0, 0.2, 1),
    height 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.beastry-rail a:focus-visible {
  outline: 2px solid var(--beastry-bar, CanvasText);
  outline-offset: 3px;
  border-radius: 8px;
}

.beastry-home {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.1rem 0.15rem;
  border-radius: 8px;
  color: color-mix(in srgb, CanvasText 68%, Canvas);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.15;
}

.beastry-home img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
}

.beastry-home small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in srgb, CanvasText 50%, Canvas);
}

.beastry-rail-label {
  margin: 0 0 0.28rem;
  padding-left: calc(var(--beastry-rail-tick) + 0.55rem);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in srgb, CanvasText 46%, Canvas);
}

.beastry-rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.beastry-rail nav a {
  display: grid;
  grid-template-columns: var(--beastry-rail-tick) var(--beastry-rail-icon) minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: center;
  min-height: 38px;
  padding: 0.12rem 0.2rem 0.12rem 0;
  border-radius: 8px;
  color: color-mix(in srgb, CanvasText 76%, Canvas);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.15;
}

.beastry-rail nav a::before {
  content: "";
  width: 10px;
  height: 1px;
  justify-self: start;
  border-radius: 1px;
  background: color-mix(in srgb, CanvasText 28%, transparent);
}

.beastry-rail nav a img {
  width: var(--beastry-rail-icon);
  height: var(--beastry-rail-icon);
  max-width: none;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 0.5px color-mix(in srgb, CanvasText 14%, transparent);
}

.beastry-rail nav a img.beastry-tool-icon {
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  background: transparent;
}

.beastry-rail nav a[aria-current="page"] {
  background: none;
  box-shadow: none;
  color: CanvasText;
  font-weight: 700;
}

.beastry-rail nav a[aria-current="page"]::before {
  width: var(--beastry-rail-tick);
  height: 2.5px;
  background: var(--beastry-bar, CanvasText);
}

.beastry-home:hover {
  color: CanvasText;
  translate: 1px 0;
}

.beastry-rail nav a:hover {
  background: none;
  color: CanvasText;
  translate: 1px 0;
  text-shadow: 0 0 0.45px currentColor;
}

.beastry-rail nav a:hover::before {
  width: 12px;
  height: 1.5px;
  background: color-mix(in srgb, CanvasText 55%, transparent);
}

.beastry-rail nav a[aria-current="page"]:hover {
  background: none;
}

.beastry-rail nav a[aria-current="page"]:hover::before {
  width: var(--beastry-rail-tick);
  height: 2.5px;
  background: var(--beastry-bar, CanvasText);
}

@media (prefers-contrast: more) {
  .beastry-rail nav a::before {
    height: 1.5px;
    background: color-mix(in srgb, CanvasText 62%, transparent);
  }

  .beastry-rail nav a[aria-current="page"]::before {
    height: 3px;
  }
}

.beastry-intro {
  margin-inline: auto;
  max-width: 980px;
}

.beastry-identity {
  text-align: center;
}

.beastry-identity picture,
.beastry-identity .brand-mark,
.beastry-identity h1 {
  margin-inline: auto;
}

.beastry-identity picture,
.beastry-identity .brand-mark {
  display: block;
  width: max-content;
  max-width: 100%;
}

.beastry-identity .beastry-icon,
.beastry-identity .hero-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 0.35rem;
  border-radius: 26px;
  object-fit: cover;
}

.beastry-identity .beastry-icon.beastry-tool-icon {
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.beastry-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
}

.beastry-meta {
  margin: 0.7rem auto 0;
  max-width: 36rem;
  color: color-mix(in srgb, CanvasText 68%, Canvas);
  font-size: 0.92rem;
}

.beastry-character {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

.beastry-character > * {
  width: min(100%, 340px);
}

.beastry-character > .beastry-mascot-card {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0.85rem 1.15rem;
  align-items: center;
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid color-mix(in srgb, CanvasText 14%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, Canvas 94%, CanvasText 6%);
  color: CanvasText;
  text-align: start;
}

.beastry-mascot-card img {
  width: 148px;
  height: auto;
}

.beastry-mascot-card p,
.beastry-mascot-card h2 {
  margin: 0;
}

.beastry-mascot-card .beastry-mascot-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.62;
}

.beastry-mascot-card h2 {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.beastry-mascot-card .beastry-mascot-name {
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.beastry-mascot-card dl {
  margin: 0.75rem 0 0;
}

.beastry-mascot-card dl > div + div {
  margin-top: 0.65rem;
}

.beastry-mascot-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.62;
}

.beastry-mascot-card dd {
  margin: 0.12rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.beastry-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 300px);
  gap: 1.4rem 2rem;
  align-items: start;
  margin-top: 1.6rem;
  text-align: start;
}

.beastry-details {
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid color-mix(in srgb, CanvasText 14%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, Canvas 94%, CanvasText 6%);
  color: CanvasText;
}

.beastry-details h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.beastry-details dl {
  margin: 0;
}

.beastry-details dl > div + div {
  margin-top: 0.75rem;
}

.beastry-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.62;
}

.beastry-details dd {
  margin: 0.12rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.beastry-details a {
  color: inherit;
}

.beastry-details-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.beastry-details-links a {
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.beastry-details-links a {
  transition: translate 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.beastry-details-links a:hover {
  translate: 0 -1px;
  text-decoration: underline;
}

.stow-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.35rem;
}

.stow-lang a {
  min-height: 32px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}

.stow-lang a[aria-current='page'] {
  background: color-mix(in srgb, var(--accent, #d97b2b) 18%, transparent);
}

@media (max-width: 1160px) {
  body.beastry-with-rail {
    padding-left: 0;
  }

  .beastry-rail {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "home home"
      "label nav";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    padding: 0.7rem 0.95rem 0.55rem;
    overflow: visible;
    border-bottom: 1px solid color-mix(in srgb, CanvasText 10%, transparent);
  }

  .beastry-home {
    grid-area: home;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .beastry-home small {
    display: block;
  }

  .beastry-rail-label {
    grid-area: label;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .beastry-rail nav {
    grid-area: nav;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-block: 3px;
  }

  .beastry-rail nav::-webkit-scrollbar {
    display: none;
  }

  .beastry-rail nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding-right: 0.4rem;
  }
}

@media (max-width: 900px) {
  .beastry-intro-body {
    grid-template-columns: 1fr;
  }
}

.beastry-quip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(920px, calc(100% - 2.4rem));
  margin: 0.2rem auto 1.4rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--beastry-bar, CanvasText) 14%, Canvas);
  color: CanvasText;
}

.beastry-quip img {
  width: 72px;
  height: auto;
  flex: none;
}

.beastry-quip p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

body.beastry-dev {
  margin: 0;
  background: Canvas;
  color: CanvasText;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.55;
}

body.beastry-dev main {
  padding: 2.2rem 0 3.2rem;
}

body.beastry-dev .wrap {
  width: min(920px, calc(100% - 2.4rem));
  margin-inline: auto;
}

body.beastry-dev h1 {
  margin: 0.35rem auto 0;
  max-width: 14em;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

body.beastry-dev .lede {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

body.beastry-dev .beastry-btn {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--beastry-bar, CanvasText);
  color: Canvas;
  font-weight: 650;
  text-decoration: none;
}

body.beastry-dev .beastry-dev-section {
  margin-top: 0.6rem;
}

body.beastry-dev .beastry-dev-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

body.beastry-dev .beastry-dev-section p {
  margin: 0 0 0.7rem;
}

@media (max-width: 640px) {
  .beastry-character > .beastry-mascot-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .beastry-rail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "home"
      "label"
      "nav";
    row-gap: 0.2rem;
    padding-inline: 0.8rem;
  }

  .beastry-rail-label {
    justify-self: start;
    margin: 0.2rem 0 0;
    padding-left: 0;
  }

  .beastry-rail nav a {
    column-gap: 0.45rem;
    padding-right: 0.2rem;
  }
}

/* Quiet hover on product screenshots and the main actions.
   The product pages keep their own color. This only moves them. */
body .btn,
body .btn-sm,
body .download-btn {
  transition:
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body .stage.stage-shot img,
body .tour-frame img,
body .shot img,
body .shot-frame img,
body .hero-desk img {
  transform-origin: center;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body .stage.stage-shot,
body .tour-frame,
body .shot,
body .shot-frame,
body .hero-desk {
  overflow: hidden;
}

body .btn:hover,
body .btn-sm:hover,
body .download-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px rgba(42, 36, 33, 0.12);
}

body .stage.stage-shot:hover img,
body .tour-frame:hover img,
body .shot:hover img,
body .shot-frame:hover img,
body .hero-desk:hover img {
  transform: scale(1.05);
}

body .btn:active,
body .btn-sm:active,
body .download-btn:active {
  transform: translateY(0) scale(0.98);
}

body .stage.stage-shot:active img,
body .tour-frame:active img,
body .shot:active img,
body .shot-frame:active img,
body .hero-desk:active img {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .beastry-home,
  .beastry-rail nav a,
  .beastry-rail nav a::before,
  .beastry-details-links a,
  body .btn,
  body .btn-sm,
  body .download-btn,
  body .stage.stage-shot img,
  body .tour-frame img,
  body .shot img,
  body .shot-frame img,
  body .hero-desk img {
    transition: none;
  }

  .beastry-home:hover,
  .beastry-rail nav a:hover,
  .beastry-details-links a:hover,
  body .btn:hover,
  body .btn:active,
  body .btn-sm:hover,
  body .btn-sm:active,
  body .download-btn:hover,
  body .download-btn:active,
  body .stage.stage-shot:hover img,
  body .stage.stage-shot:active img,
  body .tour-frame:hover img,
  body .tour-frame:active img,
  body .shot:hover img,
  body .shot:active img,
  body .shot-frame:hover img,
  body .shot-frame:active img,
  body .hero-desk:hover img,
  body .hero-desk:active img {
    transform: none;
    translate: none;
  }
}
