@font-face {
  font-family: Inter;
  src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  color: white;
}
html {
  scroll-behavior: smooth;
}
body {
  background-attachment: fixed;
  background-image:
    radial-gradient(
      circle at 10% 10%,
      rgba(167, 139, 250, 0.35),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(45, 212, 191, 0.25),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(59, 130, 246, 0.3),
      transparent 35%
    ),
    linear-gradient(135deg, #111827 0%, #312e81 48%, #0f766e 100%);
}
.rotating-word {
  display: inline-block;
  color: #a78bfa;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rotating-word.is-changing {
  opacity: 0;
  transform: translateY(0.25em);
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word {
    transition: none;
  }
}
/**
 * mast head
 */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 1rem;
}
header h1 {
  font-weight: normal;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  text-align: center;
  margin: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
header h1 img { 
  margin-right: 1rem;
  height: 1em;
  vertical-align: middle;
}
header p {
  font-weight: normal;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  max-width: 700px;
  margin: 0;
  text-align: center;
}
header ol {
  list-style-type: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}
header li {
  display: inline-block;
  margin-right: 2rem;
}
header li:last-of-type {
  margin-right: 0;
}
header li a {
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  color: white;
}
header li a:hover {
  background-color: rgba(255, 255, 255, 0.35);
}
.docker-quick-start {
  box-sizing: border-box;
  width: min(100%, 48rem);
  margin: 0 0 2rem;
  padding: 1.5rem;
  gap: 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  text-align: left;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.35), 0 0 5rem rgba(120, 160, 255, 0.2);
}
.docker-quick-start h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}
.docker-quick-start p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}
.docker-quick-start pre {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #e2e8f0;
  font: 0.8rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/**
 * content blocks
 */
section {
  box-sizing: border-box;
  padding: 4rem 2rem;
  margin: 2rem 0rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}
section h2 {
  text-align: center;
  font-weight: 300;
}

section p {
  font-weight: normal;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0;
  text-align: center;
}

footer {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  font-size: 0.75rem;
}

/** 
 * compatible app screenshots
 */
.app-screenshots {
  list-style-type: none;
  gap: 4rem;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.app-screenshots li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 2rem;
}
.app-screenshots img {
  display: block;
  max-width: 100%;
  height: auto;
}
.app-screenshots--phones li {
  flex: 0 1 342px;
}
.app-screenshots--phones span {
  text-align: center;
}
.app-screenshots--phones li {
  position: relative;
  transition: transform 0.6s ease;
}
.app-screenshots--phones li.is-center {
  z-index: 1;
}
.app-screenshots--phones img {
  transition: width 0.6s ease, transform 0.6s ease;
}
.app-screenshots--web li {
  width: 100%;
}
.app-screenshots--web img {
  border-radius: 0.75rem;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.35), 0 0 5rem rgba(120, 160, 255, 0.2);
}
.screenshot-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.screenshot-controls fieldset {
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
}
.screenshot-controls legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.screenshot-controls label {
  position: relative;
  cursor: pointer;
}
.screenshot-controls input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.screenshot-controls label span {
  display: block;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.screenshot-controls label:hover span {
  color: white;
}
.screenshot-controls input:checked + span {
  color: #1b1534;
  background: #c4b5fd;
}
.screenshot-controls input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: 2px;
}
.screenshot-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  aspect-ratio: 1783 / 1076;
}
.app-screenshots.screenshot-rotator {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transition: width 1s ease, height 1s ease;
}
.app-screenshots.screenshot-rotator.is-mobile {
  width: 18%;
}
.screenshot-rotator li {
  position: absolute;
  inset: 0;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.97);
  transition: opacity 1s ease, transform 1s ease, visibility 0s linear 1s;
}
.screenshot-rotator li.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 1s ease, transform 1s ease, visibility 0s;
}
.screenshot-rotator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .screenshot-stage {
    aspect-ratio: 2 / 3;
  }
  .app-screenshots.screenshot-rotator {
    height: 40.2%;
  }
  .app-screenshots.screenshot-rotator.is-mobile {
    width: 44%;
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-screenshots.screenshot-rotator,
  .screenshot-rotator li,
  .screenshot-rotator li.is-active {
    transform: none;
    transition: none;
  }
}

@media (max-width: 1200px) {
  .app-screenshots--phones {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .app-screenshots--phones {
    gap: 0;
  }
  .app-screenshots--phones li {
    flex-basis: 33.333%;
  }
  .app-screenshots--phones li.is-center img {
    width: 132%;
    max-width: none;
    /* lift by half the height difference (0.32 / 1.32 / 2) */
    transform: translateY(-12%);
  }
}

/**
 * API example code
 */
.api-block { 
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.api-block p {
  text-align: left;
  font-size: 1rem;
  max-width: 30rem;
  margin: 0 2rem 0 0;
  padding: 0;
}

.code-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
}

.code-tab {
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  cursor: pointer;
}

.code-tab.active {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #64748b;
}

/**
 * API endpoint browser
 */
.code-keyword { color: #c084fc }
.code-string { color: #a5d6a7 }
.code-method { color: #7dd3fc }
.code-variable { color: #fbbf24 }
.code-function { color: #93c5fd }
.code-comment { color: #888 }
.code-comment a {  color: #999 }

.api-section {
  box-sizing: border-box;
}

.api-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
}

.api-panel {
  min-width: 0;
  padding: 1rem;
  background: #0f172a;
}

.api-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.api-panel h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.api-panel .api-route {
  font-size: 1rem;
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

.api-method {
  font-weight: bold;
}
.api-method--get { color: #7dd3fc; }
.api-method--post { color: #86efac; }
.api-method--patch { color: #fcd34d; }
.api-method--put { color: #fdba74; }
.api-method--delete { color: #fda4af; }

.api-panel .api-description {
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.api-panel pre {
  margin: 0;
  color: #e2e8f0;
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.api-panel--errors {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.api-panel--errors pre {
  white-space: pre-wrap;
}

.api-docs {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.35), 0 0 5rem rgba(120, 160, 255, 0.2);
}

.api-sidebar {
  border-radius: 0.75rem;
}

.api-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.api-filter, .api-list-item {
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.api-filter {
  padding: 0.4rem 0.6rem;
  background: #1e293b;
  font: 0.75rem/1.3 Inter, sans-serif;
}

.api-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 36rem;
  overflow-y: auto;
}

.api-list-item {
  padding: 0.6rem;
  font: 0.8rem/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: left;
  overflow-wrap: anywhere;
}

.api-filter:hover, .api-list-item:hover,
.api-filter[aria-pressed="true"], .api-list-item[aria-pressed="true"] {
  background: #273449;
  color: white;
}

.api-filter[aria-pressed="true"], .api-list-item[aria-pressed="true"] {
  border-color: #a78bfa;
}

.api-filter:focus-visible, .api-list-item:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: -2px;
}

@media (max-width: 700px) {
  .api-docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .api-list {
    max-height: 15rem;
  }
}

.api-example {
  align-self: center;
  max-width: 100%;
}

@media (max-width: 600px) {
  header h1 {
    margin: 2.5rem 0;
  }
  header h1 img {
    margin-right: 0.5rem;
  }
  header ol {
    width: min(100%, 18rem);
    flex-direction: column;
    gap: 0.75rem;
  }
  header li {
    margin: 0;
  }
  header li a {
    display: block;
    text-align: center;
  }
  section {
    padding: 4rem 1rem;
  }
  .app-screenshots--phones li {
    font-size: clamp(0.55rem, 2.7vw, 0.8rem);
    line-height: 1.3;
  }
  .app-screenshots--phones span {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 2.6em;
    margin-bottom: 0.5rem;
  }
}
