/*
 * The extension's own tokens, so the page and the product cannot drift apart.
 * Dark only: every screenshot on the page has a dark twin, and a landing page
 * that fights its own screenshots for contrast reads as two products.
 */
:root {
  --bg: #0d1117;
  --bg-soft: #10161e;
  --surface: #161b22;
  --surface-2: #1c232c;
  --border: #262c36;
  --border-strong: #363d49;

  --text: #e6edf3;
  --muted: #9aa4b1;
  --faint: #6e7681;

  --accent: #4d8bf5;
  --accent-2: #3fb950;
  --fail: #f85149;
  --build: #58a6ff;

  --radius: 12px;
  --radius-lg: 18px;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  --gutter: 24px;
  --max: 1120px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections must not hide under the sticky header. */
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--build);
  text-decoration-color: rgba(88, 166, 255, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  margin: 0;
  clip-path: none;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  border-radius: 8px;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  border: 1px solid var(--border-strong);
}

@media (max-width: 720px) {
  /* Four nav links plus a CTA will not fit; the page has a footer for them. */
  .nav nav a:not(.nav-cta) {
    display: none;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter) 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--build) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.btn:hover {
  background: var(--surface-2);
  border-color: var(--faint);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #5c96f7;
  border-color: #5c96f7;
}

.cta-left {
  justify-content: flex-start;
  margin-top: 36px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 17px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.badges li {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 13px;
}

/* --------------------------------------------------------------- figures */

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-lead {
  margin-top: 56px;
  /* The hero shot is the proof; let it run wider than the prose. */
  max-width: 1280px;
  margin-inline: auto;
}

.shot-narrow {
  max-width: 340px;
  margin-inline: auto;
}

/* ----------------------------------------------------------------- bands */

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.band.alt {
  max-width: none;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.band.alt > * {
  max-width: var(--max);
  margin-inline: auto;
}

h2 {
  margin: 0;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 750;
}

h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sub {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17.5px;
}

.footnote {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 760px;
}

.note {
  color: var(--faint);
  font-size: 15.5px;
  border-left: 2px solid var(--border-strong);
  padding-left: 14px;
}

/* ------------------------------------------------------------ feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card em {
  color: var(--text);
  font-style: italic;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}

.split + .split {
  border-top: 1px solid var(--border);
}

/* Reversing the order must reverse the track widths too, or the screenshot
   lands in the narrow column and the row stops matching the ones above it. */
.split.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.split.reverse .words {
  order: 2;
}

.split .words p {
  color: var(--muted);
  font-size: 16.5px;
}

@media (max-width: 880px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse .words {
    order: 0;
  }
}

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.stat strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--build), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------- checks */

.checks {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding: 18px 22px 18px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15.5px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.16);
}

.checks strong {
  color: var(--text);
}

/* -------------------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

details:first-of-type {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-weight: 650;
  font-size: 17px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  translate: 0 -50%;
  font-size: 22px;
  font-weight: 400;
  color: var(--faint);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 780px;
}

/* ----------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter) 40px;
  background: var(--bg-soft);
}

.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.foot h3 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.foot nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.foot nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  width: fit-content;
}

.foot nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 15px;
}

.copy {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13.5px;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .hero {
    padding-top: 56px;
  }
  .band {
    padding-block: 64px;
  }
}

/* --------------------------------------------------------------- two-up */

.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.two-up figcaption {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14.5px;
  background: var(--bg-soft);
}

/* ---------------------------------------------------------------- prose */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--gutter) 88px;
}

.prose h1 {
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.03em;
}

.prose .updated {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 14.5px;
}

.prose .lead {
  font-size: 18px;
  color: var(--text);
}

.prose h2 {
  margin: 48px 0 0;
  font-size: 25px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.prose h3 {
  margin: 32px 0 0;
  font-size: 18px;
}

.prose p {
  color: var(--muted);
  font-size: 16.5px;
}

.prose strong {
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.prose th {
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose td code {
  white-space: normal;
}
