:root {
  --page-bg: #212121;
  --text-strong: #ffffff;
  --text-72: rgba(255, 255, 255, 0.64);
  --text-40: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.06);
  --hero-bg: rgba(255, 255, 255, 0.12);
  --code-bg: rgba(255, 255, 255, 0.08);
  --code-border: rgba(255, 255, 255, 0.16);
  --feature-divider: rgba(255, 255, 255, 0.12);
  --copy-success: rgba(34, 197, 94, 0.35);
  --copy-fail: rgba(248, 113, 113, 0.5);
  --focus-ring: rgba(255, 255, 255, 0.7);
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --page-bg: color(display-p3 0.129 0.129 0.129);
    --text-strong: color(display-p3 1 1 1);
    --text-72: color(display-p3 1 1 1 / 0.64);
    --text-40: color(display-p3 1 1 1 / 0.4);
    --line: color(display-p3 1 1 1 / 0.06);
    --hero-bg: color(display-p3 1 1 1 / 0.12);
    --code-bg: color(display-p3 1 1 1 / 0.08);
    --code-border: color(display-p3 1 1 1 / 0.16);
    --feature-divider: color(display-p3 1 1 1 / 0.12);
    --copy-success: color(display-p3 0.133 0.773 0.369 / 0.35);
    --copy-fail: color(display-p3 0.973 0.443 0.443 / 0.5);
    --focus-ring: color(display-p3 1 1 1 / 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-strong);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 24px;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  top: -42px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--text-72);
  border-radius: 6px;
  background: var(--page-bg);
  color: var(--text-strong);
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.page-2026 {
  position: relative;
  width: min(100%, 1440px);
  min-height: 2244px;
  margin: 0 auto;
  background: var(--page-bg);
}

.docs-rail {
  position: fixed;
  left: max(24px, calc(50% - 520px));
  top: 56px;
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
}

.docs-logo {
  display: block;
  width: 128px;
  height: 32px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.docs-nav .mobile-nav-only {
  display: none;
}

.nav-label-mobile {
  display: none;
}

.nav-label-desktop {
  font-size: 13px;
  line-height: 20px;
}

.docs-nav a {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-72);
}

.docs-nav a:hover {
  color: var(--text-strong);
}

.docs-nav a.is-active {
  color: var(--text-strong);
}

.rail-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.rail-credit {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  color: var(--text-40);
  font-size: 13px;
  line-height: 16px;
}

.rail-credit > span,
.rail-credit svg {
  color: var(--text-40);
}

.rail-credit .credit-name {
  color: var(--text-72);
}

.rail-credit:hover .credit-name {
  color: var(--text-strong);
}

.rail-credit svg {
  width: 12px;
  height: 12px;
}

.docs-main {
  position: absolute;
  left: calc(50% - 250px);
  top: 56px;
  width: 500px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  text-wrap: balance;
}

.hero p {
  margin: 12px 0 0;
  color: var(--text-72);
  font-size: 15px;
  line-height: 24px;
  max-width: 500px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 20px;
}

.hero-action {
  display: inline-flex;
  height: 36px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 200px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-strong);
  white-space: nowrap;
  transition:
    background-color 160ms ease-out,
    border-color 160ms ease-out,
    color 160ms ease-out;
}

.hero-action-primary {
  background: rgba(255, 255, 255, 0.16);
}

.hero-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (hover: hover) {
  .hero-action-primary:hover {
    background: rgba(255, 255, 255, 0.24);
  }

  .hero-action-secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
  }
}

.hero-placeholder {
  margin-top: 40px;
  width: 500px;
  height: auto;
  aspect-ratio: 500 / 240;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
  position: relative;
}

.hero-watch-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-watch-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.features-panel {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.feature-card {
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid var(--feature-divider);
  padding: 20px 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-watch {
  position: relative;
  width: 120px;
  height: 200px;
  pointer-events: none;
}

.feature-watch-base {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.feature-watch-tone {
  position: absolute;
  inset: 0;
  background: #000;
  mix-blend-mode: color;
}

.feature-watch-screen-wrap {
  position: absolute;
  left: 12.17px;
  top: 44.96px;
  width: 89.596px;
  height: 109.913px;
  isolation: isolate;
}

.feature-watch-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.feature-watch-screen-clip {
  position: absolute;
  left: -0.1px;
  top: -0.1px;
  width: 89.775px;
  height: 110.116px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-mask-image: url("/assets/2026-feature-screen-clip-mask.svg");
  mask-image: url("/assets/2026-feature-screen-clip-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 89.598px 109.913px;
  mask-size: 89.598px 109.913px;
  -webkit-mask-position: 0.098px 0.104px;
  mask-position: 0.098px 0.104px;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.feature-watch-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.feature-label {
  margin: 0;
  min-width: 100%;
  color: var(--text-40);
  text-align: center;
  font-size: 13px;
  line-height: 16px;
}

.docs-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 64px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.section-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ordered-steps,
.bullet-steps {
  margin: 0;
  padding-left: 19.5px;
}

.ordered-steps li,
.bullet-steps li {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 24px;
  text-wrap: pretty;
}

.bullet-steps li {
  color: var(--text-72);
}

.step-title,
.body-text,
.note-text {
  margin: 0;
  text-wrap: pretty;
}

.step-title {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 24px;
}

.body-text {
  color: var(--text-72);
  font-size: 15px;
  line-height: 24px;
}

.note-text {
  color: var(--text-40);
  font-size: 13px;
  line-height: 16px;
}

.command-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-label {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 24px;
  text-wrap: pretty;
}

.command-block {
  width: 100%;
  border-radius: 8px;
  padding: 12px;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--text-strong);
  font-family: "Geist Mono", "SF Mono", ui-monospace, Menlo, Monaco, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--code-border);
  background: transparent;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.copy-icon-presence {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.copy-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.copy-btn:not(.icon-check) .copy-icon-copy,
.copy-btn.icon-check .copy-icon-check {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.copy-btn:hover {
  color: var(--text-strong);
  border-color: rgba(255, 255, 255, 0.28);
}

.copy-btn.is-copied {
  color: var(--text-strong);
  border-color: var(--code-border);
  background: transparent;
}

.copy-btn.is-failed {
  color: var(--text-strong);
  border-color: var(--copy-fail);
  background: rgba(248, 113, 113, 0.12);
}

.trouble-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.docs-footer a {
  color: var(--text-40);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}

.docs-footer a span {
  color: var(--text-72);
}

.docs-footer a:hover span {
  color: var(--text-strong);
}

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

@media (max-width: 980px) {
  .page-2026 {
    width: 100%;
    min-height: auto;
    padding: 24px 24px 40px;
  }

  .hero-action {
    height: 36px;
    padding: 0 16px;
  }

  .copy-btn {
    width: 36px;
    height: 36px;
  }

  .docs-rail {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0 auto 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .docs-logo {
    width: 112px;
    height: 28px;
  }

  .docs-nav {
    display: none;
  }

  .docs-section {
    scroll-margin-top: 40px;
  }

  .nav-label-desktop {
    display: none;
  }

  .nav-label-mobile {
    display: inline;
  }

  .rail-divider {
    display: none;
  }

  .rail-credit {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    min-height: 28px;
    white-space: nowrap;
  }

  .rail-credit svg {
    display: none;
  }

  .docs-main {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-placeholder {
    width: 100%;
    height: min(calc(((100vw - 48px) * 240 / 500) + 32px), 272px);
    aspect-ratio: auto;
  }

}

@media (max-width: 720px) {
  .page-2026 {
    padding: 20px 24px 40px;
    overflow-x: clip;
  }

  .docs-main {
    gap: 40px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .features-panel {
    width: auto;
    margin-inline: -24px;
    padding-inline: 24px;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .features-panel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .feature-card {
    flex: 0 0 178px;
    min-width: 178px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .feature-card:last-child {
    border-right: 0;
  }
}

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

  .copy-icon {
    transition: none;
    filter: none;
  }
}
