/*
 * Open Terminal landing page. Static, no build step.
 *
 * The product's design system (packages/ui/src/styles.css) at landing-page scale: true-grey surfaces, Geist for prose,
 * Ioskeley Mono for numbers, code and labels. Colour rule (PLAN.md section 6): every chromatic colour is a pure hue
 * (one sRGB channel at 255, one at 0), lighter or darker only through alpha; neutrals are R = G = B.
 * packages/ui/test/pure-hue.test.ts scans this file too.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ioskeley Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IoskeleyMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Ioskeley Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IoskeleyMono-Medium.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Surfaces and ink: the product's tokens. */
  --bg: #0c0c0c;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --surface-3: #262626;
  --border: #282828;
  --border-strong: #373737;
  --fg: #e7e7e7;
  --fg-2: #a4a4a4;
  --fg-3: #7f7f7f;

  /* Pure hues: the accent, direction, and the series palette in its fixed order. */
  --accent: #d400ff;
  --up: #00ff00;
  --down: #ff2a00;
  --azure: #0095ff;
  --orange: #ff8000;
  --aquamarine: #00ffbf;
  --gold: #ffd500;
  --violet: #9500ff;
  --rose: #ff0095;
  --cyan: #00d5ff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Berkeley Mono", "Ioskeley Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1200px;
  --radius: 8px;
  --section: 72px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
    --section: 96px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --section: 120px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--fg-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
kbd,
pre,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
/* Inline code: a hair smaller than the sans beside it, on a raised chip. */
:not(pre) > code {
  font-size: calc(1em - 1px);
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--fg);
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover {
  background: var(--surface);
  border-color: #4a4a4a;
}
.btn svg {
  flex: none;
}
.btn-primary {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}
.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  gap: 8px;
  border-radius: 6px;
}
.btn .hint {
  font: 400 12px/1 var(--mono);
  color: var(--fg-3);
}
.btn-primary .hint {
  color: #555555;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.82);
  border-bottom: 1px solid var(--surface-2);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  width: 22px;
  height: 22px;
}
.nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.nav ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 14px;
  text-decoration: none;
}
.nav ul a:hover {
  color: var(--fg);
  background: var(--surface);
}
.nav .btn {
  margin-left: auto;
}
@media (min-width: 820px) {
  .nav ul {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: var(--section);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 780px;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000000 20%, transparent 80%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.7);
  color: var(--fg-2);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.eyebrow .sep {
  color: var(--border-strong);
}
@media (max-width: 400px) {
  .eyebrow {
    font-size: 11.5px;
    gap: 8px;
  }
}
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.14);
  flex: none;
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(34px, 0.9rem + 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero .lead {
  max-width: 600px;
  margin-top: 28px;
  color: var(--fg-2);
  font-size: clamp(17px, 1rem + 0.35vw, 20px);
  line-height: 1.55;
}
.hero .lead strong {
  color: var(--fg);
  font-weight: 500;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 519px) {
  .cta .btn {
    flex: 1 1 100%;
  }
}
.nowrap {
  white-space: nowrap;
}
.hero .cta .btn {
  min-height: 48px;
  padding: 0 22px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-3);
  font-size: 12.5px;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--border-strong);
}

.hero-shot {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -6% 8% auto;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(212, 0, 255, 0.16), transparent);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Screenshot frame ---------- */

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 32px 80px -24px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.6);
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}
.caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 12.5px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--surface-2);
}
.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--swatch, var(--accent));
}
.label b {
  color: var(--fg-2);
  font-weight: 400;
}
.section h2 {
  font-size: clamp(30px, 1.4rem + 2.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-head p {
  color: var(--fg-2);
  font-size: 17px;
  max-width: 62ch;
}

/* ---------- Statement ---------- */

.statement {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--surface-2);
}
.statement p {
  max-width: 30ch;
  font-size: clamp(26px, 1.1rem + 2.4vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.statement p .dim {
  color: var(--fg-3);
}
.statement .sub {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--fg-2);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

/* ---------- Prompt showcase ---------- */

.showcase {
  display: grid;
  gap: 24px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tab {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--fg-2);
  font: 500 14px/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.tab .tag {
  display: none;
  color: var(--fg-3);
  font: 400 11.5px/1.3 var(--mono);
}
@media (min-width: 600px) {
  .tab .tag {
    display: block;
  }
}
.tab:hover {
  color: var(--fg);
  background: var(--surface);
}
.tab[aria-selected="true"] {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: inset 2px 0 0 var(--accent);
}
.tab[aria-selected="true"] .tag {
  color: var(--fg-2);
}

.panel[hidden] {
  display: none;
}
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
}
.prompt-bar .caret {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}
.prompt-bar q {
  flex: 1;
  min-width: 0;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.45;
  quotes: none;
}
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--fg-2);
  font: 400 12.5px/1 var(--mono);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.copy:hover {
  color: var(--fg);
  background: var(--surface-3);
}
.copy[data-copied] {
  color: var(--up);
  border-color: rgba(0, 255, 0, 0.35);
}
.copy .copy-label {
  display: none;
}
@media (min-width: 520px) {
  .copy .copy-label {
    display: inline;
  }
}
.panel .caption .ok {
  color: var(--fg-2);
}
.panel .caption .ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--up);
  vertical-align: 1px;
}

/* Without script every panel shows, each with its own prompt; the tabs need script. */
html:not(.js) .tabs {
  display: none;
}
html:not(.js) .panel + .panel {
  margin-top: 56px;
}

@media (min-width: 960px) {
  .showcase {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .tabs {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    position: sticky;
    top: 88px;
  }
  .tab {
    gap: 6px;
    padding: 16px 16px 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 15px;
  }
  .tab[aria-selected="true"] {
    border-color: var(--border);
  }
}

/* ---------- Why ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.features li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border);
}
.features .k {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: 12px;
}
.features .k::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--swatch);
}
.features h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.features p {
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}
@media (min-width: 1080px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
  }
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  gap: 40px;
}
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 0 0 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--fg-3);
  font: 400 13px/1.9 var(--mono);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 30px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 18px;
  line-height: 1.4;
}
.steps p {
  color: var(--fg-2);
  font-size: 15.5px;
}

.terminal {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 32px 80px -32px rgb(0 0 0 / 0.9);
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.terminal-head span:last-child {
  text-transform: none;
  letter-spacing: 0;
}
.terminal-prompt {
  padding: 16px 16px 4px;
  color: var(--fg);
  font-size: 15px;
}
.terminal-prompt .caret {
  color: var(--accent);
  font-family: var(--mono);
  margin-right: 8px;
}
.trace {
  margin: 0;
  padding: 10px 16px 16px;
  list-style: none;
  font: 400 12.5px/1.5 var(--mono);
}
.trace li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--surface-3);
}
.trace li:last-child {
  border-bottom: 0;
}
.trace .tool {
  color: var(--tool, var(--fg-2));
}
.trace .what {
  color: var(--fg);
  overflow-wrap: anywhere;
}
.trace .what i {
  color: var(--fg-3);
  font-style: normal;
}
.trace .ms {
  color: var(--fg-3);
  text-align: right;
}
.terminal-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--fg-2);
  font-size: 12.5px;
}
.terminal-foot .ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--up);
  vertical-align: 1px;
}
@media (max-width: 519px) {
  .trace li {
    grid-template-columns: 1fr auto;
  }
  .trace .what {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (min-width: 1000px) {
  .how {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: start;
  }
}

.data {
  display: grid;
  gap: 40px;
  margin-top: clamp(56px, 7vw, 96px);
}
.data h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 18px;
}
.data h3 .count {
  color: var(--fg-3);
  font: 400 12.5px/1 var(--mono);
}
.data p {
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 14.5px;
}
.connectors {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.connectors li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.connectors code {
  color: var(--fg);
  font-size: 13px;
}
.connectors .key {
  color: var(--fg-3);
  font: 400 12px/1.6 var(--mono);
}
.connectors .routes {
  grid-column: 2;
  color: var(--fg-2);
}
.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tokens li {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--fg-2);
  font: 400 12.5px/1.3 var(--mono);
}
@media (min-width: 900px) {
  .data {
    grid-template-columns: 1.15fr 1fr 0.85fr;
    gap: 48px;
  }
}

/* ---------- Code ---------- */

.code {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 6px 4px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-3);
  font: 400 12px/1 var(--mono);
}
.code pre {
  font-variant-ligatures: none;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}
.code .c {
  color: var(--fg-3);
}
.code .s {
  color: var(--gold);
}
.code .k {
  color: var(--azure);
}
.code .f {
  color: var(--aquamarine);
}
.code .p {
  color: var(--accent);
  user-select: none;
}

.extend {
  display: grid;
  gap: 40px;
  align-items: start;
}
.extend .section-head {
  margin-bottom: 0;
}
.extend ul {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-2);
  font-size: 15.5px;
}
.extend ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}
.extend ul li::before {
  content: "→";
  color: var(--fg-3);
  font-family: var(--mono);
}
.extend ul strong {
  color: var(--fg);
  font-weight: 500;
}
@media (min-width: 1000px) {
  .extend {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

/* ---------- Compare ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare thead th {
  color: var(--fg-3);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 24%;
  background: var(--surface);
  color: var(--fg);
  font-weight: 500;
}
.compare td {
  color: var(--fg-2);
}
.compare .us {
  background: rgba(212, 0, 255, 0.07);
  color: var(--fg);
}
.compare thead .us {
  color: var(--fg);
  box-shadow: inset 0 2px 0 var(--accent);
}
.compare .yes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare .yes::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  flex: none;
}
.compare .no {
  color: var(--fg-3);
}
.note {
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 13px;
}

/* ---------- Install ---------- */

.install {
  display: grid;
  gap: 40px;
}
.install-steps {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}
.install-steps > li {
  display: grid;
  gap: 12px;
  counter-increment: install;
}
.install-steps h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
}
.install-steps h3::before {
  content: counter(install);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--fg-2);
  font: 500 12px/1 var(--mono);
  transform: translateY(-2px);
}
.install-steps h3 .opt {
  color: var(--fg-3);
  font: 400 12px/1 var(--mono);
}
.install-steps p {
  color: var(--fg-2);
  font-size: 15.5px;
}
.aside {
  display: grid;
  gap: 0;
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.aside li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.aside li:last-child {
  border-bottom: 0;
}
.aside .k {
  color: var(--fg-3);
  font: 400 12px/1.4 var(--mono);
}
.aside .v {
  color: var(--fg);
  font-size: 15px;
}
.aside .v a {
  text-decoration-color: var(--fg-3);
}
@media (min-width: 1000px) {
  .install {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 64px;
  }
  .aside {
    position: sticky;
    top: 88px;
  }
}

/* ---------- Closing call to action and footer ---------- */

.closing {
  position: relative;
  padding-block: clamp(80px, 11vw, 144px);
  border-top: 1px solid var(--surface-2);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: -1;
  width: min(900px, 140vw);
  height: 520px;
  transform: translate(-50%, -55%);
  background: radial-gradient(closest-side, rgba(212, 0, 255, 0.14), transparent);
  filter: blur(30px);
}
.closing h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(34px, 1.4rem + 3.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.closing p {
  max-width: 52ch;
  margin: 22px auto 0;
  color: var(--fg-2);
  font-size: 17px;
}
.closing .cta {
  justify-content: center;
}

.footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--surface-2);
  color: var(--fg-3);
  font-size: 13.5px;
}
.footer-inner {
  display: grid;
  gap: 20px;
}
.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer a {
  color: var(--fg-2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--fg);
}
.footer .brand {
  color: var(--fg);
}
.footer small {
  font-size: 12.5px;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 40px;
  }
  .footer nav ul {
    justify-content: flex-end;
  }
  .footer small {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Before app.js has run, script-enabled pages show only the first panel (no flash of all six). */
html.js:not(.tabs-ready) .panel:not(:first-child) {
  display: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
