:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f5f7fb;
  color: #171a1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: 1080px;
  padding: 56px 20px;
}

.hero {
  border-bottom: 1px solid #d8dee8;
  padding-bottom: 36px;
}

.eyebrow {
  color: #42526b;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 5.4rem;
  line-height: 0.98;
  max-width: 860px;
}

h2 {
  font-size: 1.15rem;
}

.lede {
  color: #4d5562;
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 720px;
}

.endpoint {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #f9fafb;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
}

.endpoint code {
  overflow-wrap: anywhere;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 28px 0;
}

article,
.panel,
.tools {
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 20px;
}

.step {
  align-items: center;
  background: #2dd4bf;
  border-radius: 999px;
  color: #0f172a;
  display: inline-flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  margin-bottom: 14px;
  width: 30px;
}

a {
  color: #0f766e;
  font-weight: 700;
}

.panel,
.tools,
.copy-panel {
  margin-top: 18px;
}

.copy-panel {
  display: flex;
  width: fit-content;
}

.copy-menu {
  position: relative;
}

.copy-menu summary {
  background: #111827;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  padding: 12px 14px;
  width: fit-content;
}

.copy-menu summary::-webkit-details-marker {
  display: none;
}

.copy-menu summary::after {
  content: "v";
  display: inline-block;
  font-size: 0.76rem;
  margin-left: 10px;
}

.copy-menu[open] summary::after {
  transform: rotate(180deg);
}

.copy-menu:not([open]) .copy-menu-body {
  display: none;
}

.copy-menu-body {
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgb(15 23 42 / 14%);
  display: grid;
  gap: 8px;
  left: 0;
  margin-top: 8px;
  min-width: min(300px, calc(100vw - 40px));
  padding: 12px;
  position: absolute;
  top: 100%;
  z-index: 10;
}

.copy-status {
  color: #42526b;
  font-size: 0.92rem;
  margin: 0;
}

.prompt-fallback {
  border: 1px solid #b8c2d1;
  border-radius: 6px;
  color: #171a1f;
  font: inherit;
  min-height: 160px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  min-width: 0;
}

label {
  display: grid;
  font-weight: 700;
  gap: 6px;
  min-width: 0;
}

input {
  border: 1px solid #b8c2d1;
  border-radius: 6px;
  font: inherit;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

button {
  background: #111827;
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
  width: fit-content;
}

.upload-output {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.upload-output:empty {
  display: none;
}

.upload-status {
  background: #111827;
  border-radius: 8px;
  color: #eef2ff;
  overflow-wrap: anywhere;
  padding: 16px;
}

.upload-status p {
  margin: 0;
}

.upload-result {
  background: #eefbf8;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #134e4a;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.upload-result.error {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

.upload-result h3 {
  font-size: 1rem;
  margin: 0;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link {
  background: #111827;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
  width: fit-content;
}

.upload-details summary {
  cursor: pointer;
  font-weight: 800;
}

.upload-details pre,
pre {
  background: #111827;
  border-radius: 8px;
  color: #eef2ff;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  main {
    padding-top: 32px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.4rem;
  }
}
