:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #111820;
  --panel-2: #151e27;
  --text: #e6edf3;
  --muted: #8b949e;
  --line: #2d3742;
  --green: #7ee787;
  --blue: #79c0ff;
  --orange: #ffa657;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.doc-page {
  display: grid;
  gap: 20px;
}

.doc-page h1,
.doc-page .panel {
  max-width: 860px;
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow,
pre,
button,
input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.subhead {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.4;
}

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.proof {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding-left: 20px;
  color: var(--text);
}

.trust li {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.trust-links {
  display: flex;
  gap: 16px;
  margin: 16px 0 0;
}

.trust-links a {
  color: var(--green);
}

.panel,
.report {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
}

input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

button {
  justify-self: start;
  padding: 12px 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.command-panel {
  margin-top: 16px;
}

.status-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.status-line a {
  color: var(--green);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin: 2px 0 0;
}

.panel-heading button {
  flex: 0 0 auto;
}

pre {
  overflow: auto;
  padding: 12px;
  border-radius: 6px;
  background: #080b10;
  color: var(--muted);
}

.command-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#ecosystem,
#receipt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 20px;
}

.expiry {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.score {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0f14;
}

.score span {
  font-size: 72px;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.score small {
  color: var(--muted);
}

#findings {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

#findings li strong {
  display: block;
}

#findings li span {
  display: inline-block;
  margin: 6px 0;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

#findings li p {
  margin: 4px 0;
  color: var(--muted);
}

.timeline {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b10;
}

.timeline span {
  flex: 1;
  min-width: 3px;
  background: linear-gradient(to top, var(--orange), var(--blue));
}

.upsell {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.upsell p {
  max-width: 720px;
  color: var(--muted);
}

.waiver {
  max-width: 820px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.45;
}

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

  .panel-heading {
    display: grid;
  }
}
