/* pm's website: one page, no build step. Colors are tokens on :root: dark first, light by the system setting or by
   data-theme on <html>. */

:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --surface: #11141d;
  --surface-2: #161a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef4;
  --muted: #a1a7b8;
  --faint: #6f7689;
  --accent: #8b7dff;
  --accent-2: #3ad6c5;
  --accent-ink: #c9c2ff;
  --warn: #ff8f6b;
  --ok: #4ade9a;
  --grid: rgba(255, 255, 255, 0.045);
  --glow-1: rgba(124, 108, 255, 0.32);
  --glow-2: rgba(58, 214, 197, 0.16);
  --term-bg: #0a0c12;
  --term-text: #d7dbe6;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
  --code-bg: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbfd;
    --bg-2: #f3f4f8;
    --surface: #ffffff;
    --surface-2: #f6f7fb;
    --border: rgba(15, 18, 30, 0.09);
    --border-strong: rgba(15, 18, 30, 0.18);
    --text: #0f1220;
    --muted: #4c5468;
    --faint: #6b7287;
    --accent: #5b4bf0;
    --accent-2: #0f9a8c;
    --accent-ink: #4636d6;
    --warn: #c2410c;
    --ok: #15803d;
    --grid: rgba(15, 18, 30, 0.055);
    --glow-1: rgba(91, 75, 240, 0.18);
    --glow-2: rgba(15, 154, 140, 0.12);
    --term-bg: #0d1017;
    --term-text: #d7dbe6;
    --shadow: 0 30px 70px -28px rgba(20, 24, 50, 0.35), 0 0 0 1px var(--border);
    --code-bg: rgba(15, 18, 30, 0.06);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --border: rgba(15, 18, 30, 0.09);
  --border-strong: rgba(15, 18, 30, 0.18);
  --text: #0f1220;
  --muted: #4c5468;
  --faint: #6b7287;
  --accent: #5b4bf0;
  --accent-2: #0f9a8c;
  --accent-ink: #4636d6;
  --warn: #c2410c;
  --ok: #15803d;
  --grid: rgba(15, 18, 30, 0.055);
  --glow-1: rgba(91, 75, 240, 0.18);
  --glow-2: rgba(15, 154, 140, 0.12);
  --term-bg: #0d1017;
  --term-text: #d7dbe6;
  --shadow: 0 30px 70px -28px rgba(20, 24, 50, 0.35), 0 0 0 1px var(--border);
  --code-bg: rgba(15, 18, 30, 0.06);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code,
pre,
kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-ligatures: none;
}

p code,
li code,
h3 code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 16px;
}

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
  border-color: transparent;
}

.btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 12px;
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 40px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -260px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side at 38% 50%, var(--glow-1), transparent),
    radial-gradient(closest-side at 66% 56%, var(--glow-2), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.pill b {
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.pill:hover {
  border-color: var(--accent);
}

h1 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 26px 0 0;
  text-wrap: balance;
}

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

.lede {
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 680px;
  margin: 24px auto 0;
  text-wrap: pretty;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.install {
  margin: 36px auto 0;
  max-width: 820px;
  text-align: left;
  border-radius: 16px;
  background: var(--term-bg);
  color: var(--term-text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.install-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: #8a91a5;
}

.dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2f3d;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
}

.cmd + .cmd {
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.cmd code {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.cmd code::-webkit-scrollbar {
  display: none;
}

.cmd .p {
  color: #6e7590;
  user-select: none;
}

.cmd .c {
  color: #7d8499;
  user-select: none;
}

.copy {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #a9b0c2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.copy svg {
  width: 16px;
  height: 16px;
}

.copy .ok {
  display: none;
}

.copy.done .ok {
  display: block;
  color: #4ade9a;
}

.copy.done .cp {
  display: none;
}

.hero-meta {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--faint);
}

.hero-meta a {
  color: var(--muted);
}

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

.hero-shot {
  position: relative;
  margin: 72px auto 0;
  max-width: 1100px;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  background: linear-gradient(120deg, var(--glow-1), var(--glow-2));
  filter: blur(60px);
  z-index: -1;
  border-radius: 40px;
}

/* Browser frame */

.frame {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.frame-bar .dots i {
  background: var(--border-strong);
}

.url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  height: 24px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.frame-bar .spacer {
  width: 42px;
}

.frame img {
  width: 100%;
  height: auto;
  background: #f5f6f4; /* the pm site's page color, while a screenshot loads */
}

.frame a {
  display: block;
}

.hero-shot .frame img {
  aspect-ratio: 2640 / 1640;
  object-fit: cover;
  object-position: top;
}

/* Sections */

section {
  position: relative;
  padding: 120px 0 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

h2 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
  font-weight: 700;
  text-wrap: balance;
}

.section-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 18px 0 0;
  text-wrap: pretty;
}

h3 {
  font-size: 1.14rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  border: 1px solid var(--border);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
  opacity: 0.6;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-ink);
  margin-bottom: 22px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* Structural */

.versus {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 52px;
  align-items: stretch;
}

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

.vs-card.prompts {
  background: transparent;
  border-style: dashed;
}

.vs-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.vs-card h3 {
  margin-top: 10px;
  font-size: 1.35rem;
}

.vs-card > p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
}

.files {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.files li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 11.5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.files svg {
  width: 26px;
  height: 26px;
  opacity: 0.7;
}

.files li:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.files li:nth-child(even) {
  transform: rotate(1.2deg);
}

.files li.ghost {
  opacity: 0.45;
  border-style: dashed;
}

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

.enforce li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.enforce .n {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 32%, transparent);
}

.enforce .n svg {
  width: 16px;
  height: 16px;
}

.enforce b {
  display: block;
  font-size: 15px;
}

.enforce span {
  color: var(--muted);
  font-size: 14.5px;
}

.terminal {
  margin-top: 18px;
  border-radius: 18px;
  background: var(--term-bg);
  color: var(--term-text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal .install-bar {
  justify-content: space-between;
}

.terminal pre {
  margin: 0;
  padding: 22px 24px 26px;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.t-p {
  color: #8b7dff;
  user-select: none;
}

.t-cmd {
  color: #f2f4f8;
  font-weight: 500;
}

.t-err {
  color: #ff8f8f;
}

.t-hook {
  color: #f5c46b;
}

.t-dim {
  color: #7d8499;
}

.t-gap {
  display: block;
  height: 14px;
}

.term-note {
  font-size: 13px;
  color: var(--faint);
  margin: 12px 4px 0;
}

/* Outcomes */

.outcomes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.outcome {
  grid-column: span 2;
  min-width: 0;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.outcome.wide {
  grid-column: span 3;
}

.outcome .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.outcome p {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 0;
}

.outcome .mini {
  margin-top: auto;
  padding-top: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--faint);
}

.chip.strike {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--warn);
  text-decoration-thickness: 1.5px;
}

.chip.good {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
}

.mono-box {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}

.mono-box .k {
  color: var(--accent-ink);
}

.mono-box .d {
  color: var(--faint);
}

/* Site gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.shot {
  margin: 0;
}

.shot.main {
  grid-column: 1 / -1;
}

.shot figcaption {
  margin: 14px 2px 0;
  font-size: 14.5px;
  color: var(--muted);
}

.shot figcaption b {
  color: var(--text);
  font-weight: 600;
}

.shot .frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
}

.shot.main .frame img {
  aspect-ratio: auto;
}

/* Diagram */

.diagram {
  margin-top: 52px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--surface);
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram .narrow {
  display: none;
  max-width: 420px;
  margin: 0 auto;
}

.dg-box {
  fill: var(--bg-2);
  stroke: var(--border-strong);
  stroke-width: 1;
}

.dg-box.hi {
  fill: color-mix(in srgb, var(--accent) 10%, var(--bg-2));
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
}

.dg-box.hi2 {
  fill: color-mix(in srgb, var(--accent-2) 9%, var(--bg-2));
  stroke: color-mix(in srgb, var(--accent-2) 50%, transparent);
}

.dg-pill {
  fill: var(--surface);
  stroke: var(--border);
}

.dg-group {
  fill: none;
  stroke: var(--border-strong);
  stroke-dasharray: 5 5;
}

.dg-t {
  fill: var(--text);
  font: 600 15px "Inter", sans-serif;
}

.dg-s {
  fill: var(--muted);
  font: 400 12.5px "Inter", sans-serif;
}

.dg-m {
  fill: var(--faint);
  font: 500 11.5px "JetBrains Mono", monospace;
}

.dg-l {
  fill: var(--accent-ink);
  font: 500 11.5px "JetBrains Mono", monospace;
}

.dg-a {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.4;
}

.dg-a.acc {
  stroke: var(--accent);
}

.dg-a.acc2 {
  stroke: var(--accent-2);
}

.dg-head {
  fill: var(--faint);
}

.dg-head.acc {
  fill: var(--accent);
}

.dg-head.acc2 {
  fill: var(--accent-2);
}

.legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.legend div {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.legend b {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 4px;
}

/* Get started */

.start {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  margin-bottom: 16px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px 0 0;
}

.step .install {
  margin: 16px 0 0;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--border);
}

.step .cmd code {
  font-size: 12.5px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.cta {
  margin: 120px 0 0;
  padding: 64px 32px;
  border-radius: 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 30% 0%, var(--glow-1), transparent 60%),
    radial-gradient(ellipse at 80% 100%, var(--glow-2), transparent 60%), var(--surface);
}

.cta h2 {
  margin: 0;
}

.cta p {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 560px;
}

/* Credits */

.credits {
  padding-top: 96px;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.credit {
  display: block;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s;
}

.credit:hover {
  border-color: var(--accent);
}

.credit b {
  display: block;
  font-size: 1.05rem;
}

.credit span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.credit code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

/* Footer */

footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--faint);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 980px) {
  .pillars,
  .start {
    grid-template-columns: 1fr;
  }
  .versus {
    grid-template-columns: 1fr;
  }
  .outcomes {
    grid-template-columns: 1fr 1fr;
  }
  .outcome,
  .outcome.wide {
    grid-column: span 1;
  }
  .outcome.last {
    grid-column: 1 / -1;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .legend {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .diagram .wide {
    display: none;
  }
  .diagram .narrow {
    display: block;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 64px;
  }
  section {
    padding-top: 88px;
  }
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }
  .outcome.last {
    grid-column: auto;
  }
  .legend {
    grid-template-columns: 1fr;
  }
  .credit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card,
  .vs-card,
  .outcome,
  .step {
    padding: 22px;
  }
  .diagram {
    padding: 18px 12px;
  }
  .terminal pre {
    padding: 18px 16px 20px;
    font-size: 12.5px;
  }
  .cmd {
    padding-left: 14px;
  }
  .cmd code {
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }
  .hero-shot {
    margin-top: 52px;
  }
  .frame-bar .url {
    display: none;
  }
  .cta {
    padding: 44px 20px;
  }
  .nav .btn-gh span {
    display: none;
  }
}

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