/* Same system as the site root: Inter, warm off-white ground, small quiet type, hairline dividers.
   This page adds a blue accent (from the app icon), phone screenshots, feature groups and a terminal. */
:root {
  --background: #fafaf9;
  --foreground: #1a1a18;
  --muted-foreground: #888882;
  --border: rgb(0 0 0 / 10%);
  --accent: #2f6bff;
  --accent-dark: #2151cc;
  --term-bg: #14161c;
  --term-fg: #e6e6e2;
  --term-muted: #8b8f96;
  --term-green: #7ed49b;
  --term-amber: #f2c14e;
  --term-red: #f08a7a;
  --term-blue: #8ec5ff;
  --term-violet: #c3a6ff;
}
* { 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; }
h3 { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.15rem; }
p { margin: 0 0 0.75rem; color: rgb(26 26 24 / 80%); }
.muted { color: var(--muted-foreground); font-size: 0.75rem; }
.eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 0.35rem; }
.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, li 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.75rem; }
.app .muted { line-height: 1.4; }
.app img { width: 3.25rem; height: 3.25rem; border-radius: 0.85rem; box-shadow: 0 1px 3px rgb(0 0 0 / 18%); }

/* One accent button, in the app blue */
.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); }

/* Phone screenshots: a captioned strip that scrolls sideways */
.gallery { display: flex; gap: 0.9rem; margin: 0.75rem 0 0.35rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.gallery figure { flex: 0 0 auto; width: 208px; margin: 0; scroll-snap-align: start; }
.gallery a { display: block; line-height: 0; }
.gallery img {
  width: 208px; max-width: 62vw; height: auto; border-radius: 0.9rem;
  border: 1px solid var(--border); box-shadow: 0 3px 12px rgb(0 0 0 / 10%); background: #fff;
}
.gallery figcaption { margin-top: 0.45rem; font-size: 0.72rem; line-height: 1.4; color: var(--muted-foreground); }
.gallery figcaption b { color: var(--foreground); font-weight: 600; }
.shots-note { margin-top: 0.35rem; }

/* Feature groups: a titled card with a small list, in the page's own type */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.25rem 0 0.75rem; }
.groups .g { border: 1px solid var(--border); border-radius: 0.7rem; padding: 0.8rem 0.9rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.groups .g h3 { display: flex; align-items: baseline; gap: 0.4rem; }
.groups .g .tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); background: rgb(47 107 255 / 10%); padding: 0.05rem 0.35rem; border-radius: 0.3rem; }
.groups .g ul { list-style: none; padding: 0; margin: 0.35rem 0 0; display: grid; gap: 0.2rem; }
.groups .g li { color: rgb(26 26 24 / 78%); font-size: 0.8rem; padding-left: 0.95rem; position: relative; line-height: 1.5; }
.groups .g li::before { content: "›"; position: absolute; left: 0.1rem; color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }

/* The fun part: a terminal, the way the agent API looks when it runs. */
.term {
  margin: 1.25rem 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 / 14%);
  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 .vio { color: var(--term-violet); }
@media (max-width: 480px) { .term { font-size: 0.7rem; } }

/* Privilege tiers: a compact table of what unlocks what */
.tiers { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 0.25rem 0 0.75rem; }
.tiers th, .tiers td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tiers th { font-weight: 500; color: var(--muted-foreground); font-size: 0.72rem; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers .pill { display: inline-block; font-size: 0.66rem; font-weight: 600; padding: 0.05rem 0.4rem; border-radius: 0.3rem; white-space: nowrap; }
.tiers .none { background: rgb(0 0 0 / 6%); color: var(--muted-foreground); }
.tiers .perm { background: rgb(31 143 95 / 12%); color: #166b47; }
.tiers .shiz { background: rgb(47 107 255 / 12%); color: var(--accent-dark); }
.tiers .root { background: rgb(240 138 122 / 18%); color: #b4442f; }

/* Feature list (plain) */
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; }

/* Small stat row under the hero */
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.stats li { font-size: 0.78rem; color: var(--muted-foreground); }
.stats b { color: var(--foreground); font-weight: 600; }
