/* Same system as the site root: Inter, warm off-white ground, small quiet type, hairline dividers.
   This page adds one accent (a terminal green), a terminal block and a data table. */
:root {
  --background: #fafaf9;
  --foreground: #1a1a18;
  --muted-foreground: #888882;
  --border: rgb(0 0 0 / 10%);
  --accent: #1f8f5f;
  --accent-dark: #166b47;
  --term-bg: #1c1d1f;
  --term-fg: #e6e6e2;
  --term-muted: #8b8f96;
  --term-green: #7ed49b;
  --term-amber: #f2c14e;
  --term-red: #f08a7a;
  --term-blue: #8ec5ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 42rem; margin: 0 auto; padding: 5rem 1.5rem; }
h1 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin: 0; }
h2 { font-size: 0.875rem; font-weight: 500; margin: 0 0 0.75rem; }
p { margin: 0 0 0.75rem; color: rgb(26 26 24 / 80%); }
.muted { color: var(--muted-foreground); font-size: 0.75rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
section { margin-bottom: 0.5rem; }
a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #e5e5e5;
  transition: text-decoration-color 150ms;
}
a:hover { text-decoration-color: currentColor; }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8em; }
p code { background: rgb(0 0 0 / 5%); padding: 0.1em 0.35em; border-radius: 0.3rem; }

/* Header with the icon */
.app { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.25rem; }
.app .muted { line-height: 1.4; }
.app img { width: 3rem; height: 3rem; border-radius: 0.75rem; box-shadow: 0 1px 2px rgb(0 0 0 / 10%); }

/* One accent button, in the terminal green */
.store {
  display: inline-block; margin-top: 0.75rem; padding: 0.6rem 1.1rem;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 0.875rem;
  border-radius: 0.6rem; text-decoration: none; box-shadow: 0 2px 0 var(--accent-dark);
  transition: transform 120ms, box-shadow 120ms;
}
.store:hover { transform: translateY(1px); box-shadow: 0 1px 0 var(--accent-dark); }

/* The fun part: a terminal, the way the script looks when it runs. */
.term {
  margin: 1.75rem 0 0.75rem; padding: 0.9rem 1.1rem;
  background: var(--term-bg); color: var(--term-fg);
  border-radius: 0.6rem; box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; line-height: 1.6;
  overflow-x: auto; white-space: pre; tab-size: 4;
}
.term .cmd { color: #fff; }
.term .cmd::before { content: "$ "; color: var(--term-muted); }
.term .dim { color: var(--term-muted); }
.term .ok { color: var(--term-green); }
.term .warn { color: var(--term-amber); }
.term .bad { color: var(--term-red); }
.term .key { color: var(--term-blue); }
.term .dots { display: flex; gap: 0.4rem; margin: -0.2rem 0 0.7rem; }
.term .dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #3a3b3f; display: block; }
@media (max-width: 480px) {
  .term { font-size: 0.7rem; }
  .term.hero { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Feature list */
ul.features { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.35rem; }
ul.features li { color: rgb(26 26 24 / 80%); padding-left: 1.25rem; position: relative; }
ul.features li::before { content: "›"; position: absolute; left: 0.2rem; color: var(--accent); font-weight: 600; }

/* The export: a data table in the page's own type, hairline rules, numbers to the right */
.export { margin: 0 0 0.75rem; border: 1px solid var(--border); border-radius: 0.6rem; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.export .file {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 0.9rem; background: rgb(0 0 0 / 3%); border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; color: var(--muted-foreground);
}
.export .file b { color: var(--foreground); font-weight: 500; }
.export .scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.75rem; line-height: 1.5; }
th, td { padding: 0.4rem 0.75rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 500; color: var(--muted-foreground); font-size: 0.7rem; letter-spacing: 0.02em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgb(31 143 95 / 5%); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.72rem; }
td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 11rem; }
td .null { color: var(--muted-foreground); font-style: italic; }
td .bool { display: inline-block; padding: 0 0.4rem; border-radius: 0.3rem; font-size: 0.68rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
td .bool.t { background: rgb(31 143 95 / 12%); color: var(--accent-dark); }
td .bool.f { background: rgb(0 0 0 / 6%); color: var(--muted-foreground); }
.export .more { padding: 0.45rem 0.9rem; font-size: 0.7rem; color: var(--muted-foreground); border-top: 1px solid var(--border); background: rgb(0 0 0 / 2%); }

/* Provider groups: a small grid of what the probe knows about */
.providers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0 0 0.75rem; }
.providers div { border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem 0.8rem; background: #fff; }
.providers b { display: block; font-weight: 500; font-size: 0.8rem; }
.providers span { color: var(--muted-foreground); font-size: 0.72rem; }
@media (max-width: 480px) { .providers { grid-template-columns: 1fr 1fr; } }
