/* shellvane.com. Dark first (the app's home is a terminal), with a light
   variant; no web fonts or third-party files (see the privacy page). */
:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgb(255 255 255 / 4%);
  --surface-2: rgb(255 255 255 / 7%);
  --text: #e9edf5;
  --muted: #9aa5bd;
  --border: rgb(255 255 255 / 9%);
  --border-strong: rgb(255 255 255 / 16%);
  --accent: #4f8cff;
  --accent-2: #7dd3fc;
  --accent-3: #a78bfa;
  --accent-text: #ffffff;
  --code: rgb(255 255 255 / 6%);
  --term: #0a0f1c;
  --red: #f87171;
  --yellow: #facc15;
  --green: #4ade80;
  --blue: #60a5fa;
  --shadow: 0 30px 80px -20px rgb(0 0 0 / 60%);
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fd;
    --bg-2: #eef2fa;
    --surface: rgb(15 23 42 / 3%);
    --surface-2: rgb(15 23 42 / 6%);
    --text: #0f172a;
    --muted: #55627a;
    --border: rgb(15 23 42 / 10%);
    --border-strong: rgb(15 23 42 / 18%);
    --accent: #2563eb;
    --accent-2: #0ea5e9;
    --accent-3: #7c3aed;
    --code: rgb(15 23 42 / 6%);
    --shadow: 0 30px 70px -25px rgb(15 23 42 / 35%);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-2);
  text-underline-offset: 3px;
}
@media (prefers-color-scheme: light) {
  a {
    color: var(--accent);
  }
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}
::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  flex: 1;
}
.top nav a,
.lang {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}
.top nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.top nav a[aria-current],
.top nav a:hover,
.lang:hover {
  color: var(--text);
}
.top nav a[aria-current]::after,
.top nav a:hover::after {
  transform: scaleX(1);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* The phone menu's button (shown on small screens only) */
.menu-toggle {
  display: none;
  place-content: center;
  gap: 4px;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.top.open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.top.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.top.open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
  background: color-mix(in srgb, var(--surface-2), var(--text) 6%);
  transform: translateY(-1px);
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-3)));
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn.primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), #fff 10%), color-mix(in srgb, var(--accent) 45%, var(--accent-3)));
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn.ghost {
  background: transparent;
}
.btn.big {
  padding: 13px 24px;
  font-size: 17px;
  border-radius: 12px;
}
.btn.small {
  padding: 5px 11px;
  font-size: 14px;
  border-radius: 8px;
}
.header-cta {
  white-space: nowrap;
}
.small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.lead {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 19px;
}
.page .lead {
  margin-left: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.page .actions,
.card .actions {
  justify-content: flex-start;
}

/* Scroll reveal: site.js adds .in when the element is on screen. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  overflow-x: clip;
  padding: 92px 0 40px;
  text-align: center;
}
.glow {
  position: absolute;
  top: -120px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 30%, transparent 75%);
}
.glow span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow span:nth-child(1) {
  top: 0;
  left: 18%;
  background: var(--accent);
}
.glow span:nth-child(2) {
  top: 12%;
  right: 16%;
  background: var(--accent-3);
  animation-delay: -6s;
}
.glow span:nth-child(3) {
  top: 34%;
  left: 40%;
  background: var(--accent-2);
  opacity: 0.25;
  animation-delay: -12s;
}
@keyframes drift {
  to {
    transform: translate(6vw, 4vw) scale(1.15);
  }
}
.badge-pill {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  margin: 0 auto 22px;
  max-width: 900px;
  font-size: clamp(40px, 7.4vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.gradient {
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 45%, var(--accent-3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine {
  to {
    background-position: 200% center;
  }
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
}
.hero .small {
  margin-top: 16px;
}

/* The app's window: the same colors, sizes and parts as Shellvane's dark
   theme (frontend/src/styles.scss), so the page shows the real thing. */
.stage {
  margin: 56px auto 0;
  perspective: 1600px;
}
.window {
  --w-bg: #18181b;
  --w-surface: #202023;
  --w-border: #2e2e33;
  --w-text: #f4f4f5;
  --w-muted: #a1a1aa;
  --w-accent: #60a5fa;
  --w-term: #111113;
  --w-hover: rgb(255 255 255 / 8%);
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--w-border);
  border-radius: 12px;
  background: var(--w-bg);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgb(255 255 255 / 3%),
    0 0 120px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--w-text);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  text-align: left;
  transform: rotateX(calc(var(--tilt, 1) * 14deg)) scale(calc(1 - var(--tilt, 1) * 0.04));
  transform-origin: 50% 0;
  transition: transform 0.1s linear;
  color-scheme: dark;
}
.window svg {
  flex: none;
}
.lights {
  display: flex;
  gap: 7px;
  margin-right: 10px;
}
.lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.lights span:nth-child(2) {
  background: #febc2e;
}
.lights span:nth-child(3) {
  background: #28c840;
}
.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 500px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--w-border);
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid var(--w-border);
  border-radius: 6px;
  background: var(--w-surface);
  color: #71717a;
  white-space: nowrap;
}
.app {
  display: grid;
  grid-template-columns: 48px 250px minmax(0, 1fr);
  height: 560px;
}
.activity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  border-right: 1px solid var(--w-border);
  background: var(--w-surface);
}
.activity div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.activity span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--w-muted);
}
.activity span.on {
  position: relative;
  background: var(--w-hover);
  color: var(--w-accent);
}
.activity span.on::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--w-accent);
}
.side {
  min-width: 0;
  padding: 8px 8px 0;
  border-right: 1px solid var(--w-border);
  background: var(--w-surface);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
  color: var(--w-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.side-tools {
  display: flex;
  gap: 10px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid var(--w-border);
  border-radius: 6px;
  background: var(--w-bg);
  color: #71717a;
}
.tree {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tree li {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-left: calc(4px + var(--depth) * 16px);
  padding-right: 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.tree li b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
}
.tree li i {
  margin-left: auto;
  color: var(--w-muted);
  font-size: 11px;
  font-style: normal;
}
.tree li em {
  overflow: hidden;
  color: var(--w-muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
}
.tree .chev {
  color: var(--w-muted);
}
.tree li.h {
  padding-left: calc(24px + var(--depth) * 16px);
}
.tree li.active {
  background: var(--w-hover);
}
.srv {
  position: relative;
  display: inline-flex;
}
.st {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--w-surface);
  border-radius: 50%;
  background: #4ade80;
}
.work {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--w-term);
}
.tabs {
  display: flex;
  align-items: stretch;
  height: 38px;
  border-bottom: 1px solid var(--w-border);
  background: var(--w-bg);
}
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid var(--w-border);
  color: var(--w-muted);
  white-space: nowrap;
}
.tab svg {
  color: var(--w-muted);
}
.tab.active {
  box-shadow: inset 0 -2px 0 var(--w-accent);
  background: var(--w-term);
  color: var(--w-text);
}
.tab-plus {
  display: grid;
  place-items: center;
  width: 36px;
  color: var(--w-muted);
}
.tab-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding: 0 12px;
  color: var(--w-muted);
}
.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.dot.ok {
  background: #4ade80;
}
.dot.red {
  background: var(--red);
}
.dot.yellow {
  background: var(--yellow);
}
.dot.blue {
  background: var(--blue);
}
.pane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--w-border);
  background: var(--w-bg);
  white-space: nowrap;
}
.pane-head span {
  color: var(--w-muted);
}
.pane-head .chip {
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, #f87171 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #f87171 14%, transparent);
  color: #fca5a5;
  font-size: 11px;
}
.pane-head .state {
  margin-left: auto;
  color: var(--w-text);
}
.term {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  background: var(--w-term);
  color: #e4e4e7;
  font: 13px/1.45 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 12px;
  border-top: 1px solid var(--w-border);
  background: var(--w-bg);
  color: var(--w-muted);
  font-size: 12px;
  white-space: nowrap;
}
.term .ln {
  display: block;
}
.term .p {
  color: #4ade80;
}
.term .info {
  color: #3b82f6;
}
.term .warn {
  color: #eab308;
}
.term .err {
  color: #ef4444;
}
.term .dim {
  color: #71717a;
}
.term .ok {
  color: #4ade80;
}
.term .ghost {
  color: #52525b;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-bottom: -3px;
  background: #e4e4e7;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 28px 0 0;
  padding: 22px 0;
  color: var(--muted);
  font-size: 15px;
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tick {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Features */
.features {
  padding: 72px 0 40px;
  text-align: center;
}
.section-title,
.features h2,
.switch h2,
.band h2,
.final h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 750;
}
.page h2 {
  margin-top: 40px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.feature {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition:
    border-color 0.2s,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
/* A soft light follows the pointer (site.js sets --mx and --my). */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--accent) 60%, transparent);
}
.feature:hover::before {
  opacity: 1;
}
.feature:nth-child(1),
.feature:nth-child(6),
.feature:nth-child(9) {
  grid-column: span 2;
}
.icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2);
}
@media (prefers-color-scheme: light) {
  .icon {
    color: var(--accent);
  }
}
.feature h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0;
}
.showcase.flip .copy {
  order: 2;
}
.kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: light) {
  .kicker {
    color: var(--accent);
  }
}
.showcase h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
}
.showcase .muted {
  font-size: 17px;
}
.points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.visual {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    #0b1020;
  box-shadow: var(--shadow);
  color: #d5dbea;
  font-size: 13px;
  color-scheme: dark;
}
.mini-pane {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(248 113 113 / 30%);
  border-radius: 10px;
  background: var(--term);
}
.mini-pane.off {
  border-color: rgb(255 255 255 / 8%);
  opacity: 0.45;
}
.mini-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #fca5a5;
  font-size: 12px;
}
.mini-pane code {
  font: 12.5px ui-monospace, Menlo, Consolas, monospace;
}
.mini-pane .p {
  color: #4ade80;
}
.confirm {
  position: absolute;
  right: -14px;
  bottom: -18px;
  display: grid;
  gap: 4px;
  width: min(280px, 80%);
  padding: 14px 16px;
  border: 1px solid rgb(250 204 21 / 45%);
  border-radius: 12px;
  background: #151b2e;
  box-shadow: 0 20px 50px -10px rgb(0 0 0 / 70%);
  animation: float 5s ease-in-out infinite;
}
.confirm strong {
  color: #facc15;
}
.confirm span {
  color: #aab3c8;
  font-size: 12px;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.confirm-actions i,
.confirm-actions b {
  padding: 3px 10px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 600;
}
.confirm-actions i {
  border: 1px solid rgb(255 255 255 / 15%);
}
.confirm-actions b {
  background: #ef4444;
  color: #fff;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.env-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.env ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.env li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(255 255 255 / 3%);
}
.check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
}
.check .tick {
  width: 14px;
  height: 14px;
  opacity: 0;
}
/* The steps light up one after the other while on screen. */
.in .env li .check {
  animation: step 6s calc(var(--n) * 0.8s + 0.4s) infinite;
}
.in .env li .tick {
  animation: tick 6s calc(var(--n) * 0.8s + 0.4s) infinite;
}
@keyframes step {
  0%,
  8% {
    border-color: rgb(255 255 255 / 20%);
    background: transparent;
  }
  14%,
  85% {
    border-color: #4ade80;
    background: rgb(74 222 128 / 15%);
  }
}
@keyframes tick {
  0%,
  8% {
    opacity: 0;
  }
  14%,
  85% {
    opacity: 1;
  }
}
.env-bar {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(255 255 255 / 8%);
}
.env-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #4ade80);
}
.in .env-bar span {
  animation: fill 6s 0.4s infinite;
}
@keyframes fill {
  0% {
    width: 0;
  }
  55%,
  85% {
    width: 100%;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}
.vault {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.lock {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 0 10px rgb(79 140 255 / 10%), 0 0 60px rgb(79 140 255 / 50%);
  animation: pulse 3s ease-in-out infinite;
}
.lock .big {
  width: 42px;
  height: 42px;
  color: #fff;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 18px rgb(79 140 255 / 4%), 0 0 80px rgb(79 140 255 / 60%);
  }
}
.vault ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vault li {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 10px;
  background: rgb(255 255 255 / 3%);
}
.vault i {
  color: #7c87a3;
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.unlock {
  margin: 0;
  color: #8a94ad;
}

/* Import marquee */
.switch {
  padding: 64px 0;
  text-align: center;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.track span {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.marquee:hover .track {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

/* Free band and final call */
.band {
  position: relative;
  margin: 40px 0;
  padding: 64px 32px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--accent-3) 26%, transparent), transparent 60%),
    var(--bg-2);
  text-align: center;
}
.final {
  padding: 88px 0 100px;
  text-align: center;
}
.final img {
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 40px color-mix(in srgb, var(--accent) 60%, transparent));
}

/* Inner pages */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.grid article,
.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.grid article:hover,
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.grid h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.grid p {
  margin: 0;
  color: var(--muted);
}
.card .actions {
  margin-top: 12px;
}
.page {
  padding: 56px 0 80px;
}
.page h1 {
  margin-top: 0;
  font-size: clamp(32px, 5vw, 48px);
}
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.downloads section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.downloads section.recommended {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 20px 50px -25px color-mix(in srgb, var(--accent) 70%, transparent);
}
.downloads h2 {
  margin: 0 0 10px;
  font-size: 19px;
}
.downloads ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.downloads li {
  margin: 8px 0;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
.swatches {
  display: flex;
  gap: 4px;
  margin: 8px 0 0;
}
.swatches span {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 36px;
  padding: 36px 0 80px;
}
.toc,
.onpage {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow: auto;
  font-size: 14px;
}
.toc summary,
.onpage h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ul,
.onpage ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li,
.onpage li {
  margin: 2px 0;
}
.toc a,
.onpage a {
  display: block;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}
.toc a[aria-current] {
  background: var(--surface-2);
  color: var(--text);
}
.toc a:hover,
.onpage a:hover {
  color: var(--text);
}
.toc summary {
  list-style: none;
  cursor: default;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.prose {
  min-width: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}
.prose h1 {
  margin-top: 0;
}
.prose h2 {
  margin-top: 40px;
  padding-top: 8px;
}
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code);
  font: 0.88em ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.prose pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code);
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.brew {
  margin: 36px 0 0;
}
.cmd {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  align-items: center;
  margin: 14px 0;
}
.cmd > span {
  grid-column: 1 / -1;
}
.cmd pre {
  overflow: auto;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code);
}
.cmd code {
  font: 0.9em ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan h3 {
  margin: 0;
  font-size: 20px;
}
.plan ul {
  flex: 1;
  margin: 8px 0;
  padding-left: 18px;
}
.plan li {
  margin: 4px 0;
}
.price {
  font-size: 26px;
  font-weight: 700;
}
.price.soon {
  font-size: 18px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}
.badge.soon {
  background: var(--code);
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
}
table.compare th,
table.compare td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
table.compare th[scope='row'],
table.compare thead th:first-child {
  text-align: left;
  font-weight: 400;
}
table.compare .yes {
  color: var(--green);
  font-weight: 700;
}
table.compare .no {
  color: var(--muted);
}
details {
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
summary {
  cursor: pointer;
  font-weight: 600;
}

footer {
  margin-top: 40px;
  padding: 36px max(16px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Smaller screens */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 48px 210px minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .side {
    display: none;
  }
  .app {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature:nth-child(n) {
    grid-column: auto;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .showcase.flip .copy {
    order: 0;
  }
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
  }
  /* On phones the contents fold into one line above the topic. */
  .toc details {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  .toc summary {
    margin: 0;
    cursor: pointer;
  }
  .toc summary::after {
    content: ' ▾';
  }
  .toc details[open] summary {
    margin-bottom: 8px;
  }
  .toc,
  .onpage {
    position: static;
    max-height: none;
  }
  .onpage {
    display: none;
  }
}
@media (max-width: 720px) {
  /* Phones: the menu folds behind a button (site.js opens it); without
     JavaScript it stays a row that scrolls. */
  .top {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .top nav {
    order: 3;
    flex-basis: 100%;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .lang {
    margin-left: auto;
  }
  .js .menu-toggle {
    display: grid;
  }
  .js .top nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--border);
  }
  .js .top.open nav {
    display: flex;
  }
  .js .top nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }
  .js .top nav a:last-child {
    border-bottom: 0;
  }
  .js .top nav a::after {
    display: none;
  }
  .js .top nav a[aria-current] {
    color: var(--accent-2);
  }
  .hero {
    padding: 52px 0 24px;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    height: 360px;
  }
  .activity,
  .side,
  .toolbar .quick,
  .tab-tools,
  .pane-head .chip,
  .statusbar span:last-child {
    display: none;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .tabs .tab:not(.active) {
    display: none;
  }
  .term {
    font-size: 11px;
    white-space: pre;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(n) {
    grid-column: auto;
  }
  .confirm {
    position: static;
    width: auto;
    margin-top: 10px;
  }
  .band {
    padding: 44px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .window {
    transform: none;
  }
  .in .env li .check {
    border-color: #4ade80;
  }
  .in .env li .tick {
    opacity: 1;
  }
  .in .env-bar span {
    width: 100%;
  }
}

/* Download page */
.download-page h2 {
  margin: 40px 0 14px;
}
.release {
  margin: -8px 0 24px;
}
.dl-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 20px;
  background:
    radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--accent-3) 18%, transparent), transparent 60%),
    var(--bg-2);
  box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 80%, transparent);
}
.dl-hero .os-icon {
  width: 64px;
  height: 64px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
}
.dl-hero h2 {
  margin: 0 0 4px;
  font-size: 30px;
}
.dl-hero .kicker,
.dl-hero p {
  margin: 0;
}
.dl-hero-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.btn-meta {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgb(255 255 255 / 35%);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}
.dl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
}
.dl-more .file {
  padding: 4px 10px;
}
.os-icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.os-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.os-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.os-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.os-card.recommended {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.os-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
}
.os-card p {
  margin: 0;
}
.files {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.file:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
}
.file .muted {
  white-space: nowrap;
}
.dl-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.dl-extra .card h2,
.verify h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.dl-extra .card:hover,
.dl-steps .card:hover,
.verify:hover {
  transform: none;
}
.dl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dl-steps h3 {
  margin: 0 0 8px;
}
.dl-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.dl-steps li {
  margin: 6px 0;
}
.verify {
  margin-top: 16px;
}
@media (max-width: 860px) {
  .dl-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dl-hero-actions {
    justify-items: stretch;
  }
  .dl-more {
    justify-content: flex-start;
  }
  .os-cards,
  .dl-extra,
  .dl-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Team: the showcase drawing and the /teams/ page */
.visual.team {
  display: grid;
  gap: 14px;
}
.team-head-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.team-head-mini .seats {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  color: #a1a1aa;
  font-size: 12px;
}
.visual.team .members {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.visual.team .members li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--hue) 70% 55% / 25%);
  color: hsl(var(--hue) 90% 75%);
  font-size: 12px;
  font-weight: 700;
}
.who {
  display: grid;
  line-height: 1.3;
}
.who em {
  color: #8a94ad;
  font-size: 11px;
  font-style: normal;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.state {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
}
.state.on {
  background: rgb(74 222 128 / 14%);
  color: #4ade80;
}
.state.until {
  background: rgb(250 204 21 / 14%);
  color: #facc15;
}
.state.pending {
  background: rgb(251 146 60 / 14%);
  color: #fb923c;
}
.storage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px dashed rgb(255 255 255 / 14%);
  border-radius: 12px;
}
.storage span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: #c3cadb;
  font-size: 12px;
}
.storage .sync {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(79 140 255 / 25%), transparent);
}
.in .storage .sync {
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep {
  to {
    left: 100%;
  }
}
.visual.team .log {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--term);
  list-style: none;
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: #c3cadb;
}
.visual.team .log b {
  color: #60a5fa;
  font-weight: 500;
}
.visual.team .log li {
  opacity: 0;
}
.in .visual.team .log li,
.in.visual.team .log li {
  animation: logline 8s calc(var(--n) * 0.9s + 0.3s) infinite;
}
@keyframes logline {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  6%,
  88% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.showcase .more {
  margin: 22px 0 6px;
}
.note {
  max-width: 560px;
}
.teams-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 24px;
}
.teams-hero .lead {
  margin-left: 0;
}
.teams-hero .actions {
  justify-content: flex-start;
}
.teams-page h2 {
  margin-top: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step h3 {
  margin: 10px 0 6px;
}
.step p {
  margin: 0;
}
.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-weight: 700;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.teams-grid h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.storage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.storage-chips span {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 600;
}
@media (max-width: 860px) {
  .teams-hero,
  .steps,
  .teams-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .visual.team .log li {
    opacity: 1;
  }
}
.page .band .actions {
  justify-content: center;
}
