:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --text: #202124;
  --muted: #5f6368;
  --panel: #ffffff;
  --line: #d9dee7;
  --accent: #b4492d;
  --accent-2: #14736f;
  --button: #202124;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  background: var(--bg);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

p,
li {
  overflow-wrap: break-word;
}

.shell {
  width: min(100%, 1100px);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.hero {
  max-width: 760px;
  padding: 36px 0 20px;
}

.guide .hero {
  max-width: none;
}

.hero-tight {
  padding-top: 8px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 1280 / 511;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151515;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qr-link {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-link img {
  display: block;
  width: clamp(132px, 16vw, 172px);
  height: auto;
}

.hero-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: 600 0.78rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--accent-2);
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: none;
}

.guide h1 {
  font-size: clamp(1.5rem, 6vw, 4rem);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 12px;
}

.lede {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
}

.guide .lede {
  max-width: none;
  overflow-wrap: break-word;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--text);
  color: #fff;
}

.guide {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.card {
  min-width: 0;
  max-width: 100%;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-bubble {
  max-width: 100%;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b8d7ef;
  border-radius: 8px;
  background: #eff7ff;
}

.info-bubble h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

pre {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: #202124;
  color: #f7f8fb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
}

.next-steps {
  margin-top: 42px;
}

.next-steps > h2,
.slash-commands > h2 {
  margin-bottom: 18px;
}

.slash-commands {
  margin-top: 42px;
}

.command-table {
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.command-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.command-row + .command-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.command-row strong {
  color: #1168c0;
  font-weight: 800;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.command-row span {
  color: var(--muted);
}

.prompt-card {
  min-width: 0;
  max-width: 100%;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-card:first-of-type {
  margin-top: 0;
}

.prompt-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.prompt-header h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.prompt-header p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fb;
  color: var(--text);
  cursor: pointer;
}

.copy-button.copied {
  border-color: rgba(20, 115, 111, 0.35);
  color: var(--accent-2);
}

.prompt-box {
  width: 760px;
  max-width: 100%;
  background: #111827;
  color: #f8fafc;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

code {
  font: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre code {
  white-space: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

p code,
li code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: #edf1f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94em;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .shell {
    width: 100%;
    max-width: 100vw;
    padding: 26px 14px 52px;
    overflow-x: hidden;
  }

  .guide {
    width: 100%;
    max-width: 100%;
    gap: 16px;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 12px;
  }

  .hero-image {
    width: 100%;
    max-width: calc(100vw - 28px);
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
  }

  .hero-image img {
    object-position: 50% 50%;
  }

  .hero-lockup {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .qr-link {
    padding: 8px;
  }

  .qr-link img {
    width: clamp(104px, 34vw, 132px);
  }

  .card {
    width: 100%;
    max-width: calc(100vw - 28px);
    padding: 18px 16px;
  }

  h1 {
    max-width: none;
  }

  .guide h1 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    max-width: 12ch;
    margin: 0 auto;
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .guide h1,
  .guide .lede {
    white-space: normal;
  }

  .guide .lede {
    width: 100%;
    max-width: 30ch;
    margin-right: auto;
    margin-left: auto;
    margin-top: 12px;
    font-size: 1rem;
  }

  .info-bubble,
  .prompt-card,
  .command-table {
    width: 100%;
    max-width: calc(100vw - 28px);
    padding: 16px;
  }

  .card p,
  .card li,
  .prompt-card p,
  .prompt-card li,
  .command-row span {
    overflow-wrap: anywhere;
  }

  .next-steps,
  .slash-commands {
    width: 100%;
    max-width: 100%;
    margin-top: 32px;
  }

  .prompt-header {
    display: grid;
    gap: 14px;
  }

  .copy-button {
    width: fit-content;
  }

  pre {
    padding: 14px;
    font-size: 0.82rem;
  }

  .prompt-box {
    width: 100%;
  }

  .command-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
