/* The public page: a landing page for the extension, and nothing else. The recorder has its
   own stylesheet and its own page, neither of which is deployed. Same terminal palette. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #121316;
  --line: rgba(236, 233, 226, 0.09);
  --line-2: rgba(236, 233, 226, 0.18);
  --ink: #ece9e2;
  --ink-2: #a9a69f;
  --ink-3: #858379;
  --red: #ff2a2a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --sa-l: env(safe-area-inset-left, 0px);
  --sa-r: env(safe-area-inset-right, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-t: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 14px/1.6 var(--mono);
  background: radial-gradient(1000px 520px at 50% -18%, rgba(255, 42, 42, 0.09), transparent 62%), var(--bg);
  padding: max(20px, var(--sa-t)) max(18px, var(--sa-r)) max(20px, var(--sa-b)) max(18px, var(--sa-l));
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding-top: 40px;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.9);
}
.wordmark {
  margin: 0;
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  text-indent: 0.3em; /* the tracking pushes the block left; this recentres it */
}
.lede {
  margin: 0;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.sub {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-3);
  font-size: 13px;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.cta a {
  min-width: 168px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cta .primary {
  background: var(--red);
  color: #0b0c0e;
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.28);
}
.cta .primary:hover {
  background: #ff4747;
}
.cta .ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.cta .ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-2);
}
.meta {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- screenshots ---------- */
.shot {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: #000;
}
.shot figcaption {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* ---------- what it does ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.grid article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.grid h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.grid p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

/* ---------- install ---------- */
.install {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.install h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.steps {
  margin: 0 0 20px;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
}
.steps code {
  color: var(--ink);
}
.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.keys caption {
  text-align: left;
  padding-bottom: 8px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.keys th,
.keys td {
  text-align: left;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
}
.keys td {
  color: var(--ink-3);
  padding-left: 16px;
}
kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  font: inherit;
  font-size: 0.92em;
  color: var(--ink);
}
.fine {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 11px;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot a {
  color: var(--ink-3);
  text-decoration: none;
  padding: 6px 0;
}
.foot a:hover {
  color: var(--ink);
}
.foot .ver {
  margin-left: auto;
}
