/* agentguard — public site. Same palette as the product's dashboard, so the demo
   and the marketing page look like one thing. No framework, no webfont, no
   third-party anything: the site loads nothing it does not serve itself. */

:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --plane: #f9f9f7;
  --band: #f2f2ef;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --muted: #898781;
  --border: rgba(11, 11, 11, .10);
  --rule: #e1e0d9;
  --accent: #2a78d6;
  --critical: #d03b3b;
  --good: #0ca30c;
  --shadow: 0 1px 2px rgba(11, 11, 11, .05), 0 10px 30px rgba(11, 11, 11, .07);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --plane: #0d0d0d;
    --band: #151514;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --muted: #898781;
    --border: rgba(255, 255, 255, .12);
    --rule: #2c2c2a;
    --accent: #3987e5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19; --plane: #0d0d0d; --band: #151514;
  --text-primary: #fff; --text-secondary: #c3c2b7; --muted: #898781;
  --border: rgba(255,255,255,.12); --rule: #2c2c2a; --accent: #3987e5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--plane);
  color: var(--text-primary);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { font-size: .88em; background: var(--band); padding: .1em .35em; border-radius: 4px; }
pre code { background: none; padding: 0; font-size: 13px; }
a { color: inherit; }
.muted { color: var(--muted); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 28px;
  background: color-mix(in srgb, var(--plane) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.wordmark { font-weight: 650; letter-spacing: -.02em; text-decoration: none; font-size: 17px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--text-secondary); }
.nav nav a:hover { color: var(--text-primary); }

/* ---- layout ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
section { padding: 76px 0; border-bottom: 1px solid var(--rule); }
section:last-child { border-bottom: 0; }
.band { background: var(--band); border-radius: var(--radius); padding: 56px 40px; margin: 40px 0;
        border-bottom: 0; }

h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; margin: 0 0 16px; }
h3 { font-size: 16px; margin: 0 0 8px; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 14px; }

/* The product is a keyboard-first tool for engineers; its site should be too. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: 11px;
  color: var(--muted); margin-bottom: 18px;
}
.lede { font-size: 17px; color: var(--text-secondary); max-width: 62ch; }
.lede.narrow { max-width: 58ch; }
.fineprint { font-size: 13px; color: var(--muted); max-width: 62ch; }

/* ---- hero ---- */
.hero { padding-top: 64px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 40px; }

.button {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--text-primary); color: var(--plane);
  border: 1px solid var(--text-primary); border-radius: 9px;
  padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 500;
}
.button:hover { opacity: .88; }
.button.ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.button.small { padding: 6px 13px; font-size: 13px; }
.button[disabled] { opacity: .55; cursor: progress; }

.code-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.code-pair figure { margin: 0; }
.code-pair figcaption { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.code-pair pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  line-height: 1.55;
}

/* ---- grids ---- */
.grid { display: grid; gap: 22px; margin-top: 28px; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.four  { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid article p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }
/* A hairline above each entry, the way a log or a table separates rows — this
   product's own vernacular. (Not a floating accent bar: that motif says
   "generic marketing card" and belongs to no particular subject.) */
.grid article { border-top: 1px solid var(--rule); padding-top: 14px; }
.grid article h3 { font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0 30px; max-width: 68ch; }
.steps li {
  counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 16px;
  color: var(--text-secondary); font-size: 15px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-1); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.steps strong { color: var(--text-primary); font-weight: 600; }

/* ---- pricing ---- */
.prices article {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column;
}
.prices article h3::before { display: none; }
.price .amount { font-size: 30px; letter-spacing: -.02em; margin: 6px 0 2px; }
.price .amount span { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.price .period { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px;
            color: var(--text-secondary); flex: 1; }
.price li { padding: 5px 0 5px 20px; position: relative; }
.price li::before {
  content: "✓"; position: absolute; left: 0; color: var(--good); font-size: 12px;
}
.price.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
                  box-shadow: var(--shadow); }

/* ---- form ---- */
.request { max-width: 640px; margin-top: 26px; display: grid; gap: 14px; }
.request .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.request label { display: grid; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.request input, .request select, .request textarea {
  font: inherit; font-size: 15px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-1); color: var(--text-primary);
}
.request textarea { resize: vertical; }
.request input:focus, .request textarea:focus, .request select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 1px;
}
.request button { justify-self: start; margin-top: 4px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  padding: 12px 14px; border-radius: 9px; font-size: 14px; margin: 4px 0 0;
  border: 1px solid var(--border); background: var(--surface-1);
}
.form-note.ok { border-left: 3px solid var(--good); }
.form-note.bad { border-left: 3px solid var(--critical); }

/* ---- footer ---- */
footer {
  max-width: 1080px; margin: 0 auto; padding: 34px 28px 60px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); font-size: 14px; color: var(--text-secondary);
}
footer .muted { display: block; font-size: 13px; margin-top: 3px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

/* ---- portal ---- */
.portal { max-width: 720px; margin: 0 auto; padding: 60px 28px; }
.portal-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
}
.portal-card h2 { font-size: 18px; }
.signin { display: grid; gap: 8px; max-width: 360px; }
.signin label { font-size: 13px; color: var(--text-secondary); }
.signin input {
  font: inherit; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--plane); color: var(--text-primary);
}
.signin button { margin-top: 10px; justify-self: start; }
.download-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--rule);
}
.checksum {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  color: var(--muted); word-break: break-all;
}
.install-steps { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.install-steps li { margin-bottom: 14px; }
.install-steps pre {
  margin: 6px 0 0; padding: 12px 14px; background: var(--band);
  border: 1px solid var(--border); border-radius: 9px; overflow-x: auto; font-size: 13px;
}

@media (max-width: 700px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.button) { display: none; }
  main { padding: 0 16px; }
  section { padding: 52px 0; }
  .band { padding: 36px 22px; }
}
