/* agent-inbox — promotional site. No frameworks, no external requests. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --edge: #e3ded6;
  --ink: #1c1b19;
  --muted: #5f5a52;
  --accent: #8a4b2a;
  --accent-soft: #f4ece5;
  --code-bg: #f4f1ec;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 8px 24px -12px rgba(28, 27, 25, .12);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151a;
    --surface: #1e1d23;
    --edge: #33313a;
    --ink: #eceaf0;
    --muted: #a29daa;
    --accent: #e0a172;
    --accent-soft: #2a2229;
    --code-bg: #24232a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #16151a;
  --surface: #1e1d23;
  --edge: #33313a;
  --ink: #eceaf0;
  --muted: #a29daa;
  --accent: #e0a172;
  --accent-soft: #2a2229;
  --code-bg: #24232a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
}

:root[data-theme="light"] {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --edge: #e3ded6;
  --ink: #1c1b19;
  --muted: #5f5a52;
  --accent: #8a4b2a;
  --accent-soft: #f4ece5;
  --code-bg: #f4f1ec;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 8px 24px -12px rgba(28, 27, 25, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

/* ---- masthead ---- */

header.top {
  border-bottom: 1px solid var(--edge);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand span { color: var(--accent); }

nav.top-nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav.top-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav.top-nav a:hover, nav.top-nav a[aria-current] { color: var(--ink); }

/* ---- hero ---- */

.hero { padding: 4.5rem 0 3rem; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 1.1rem;
  max-width: 20ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  padding: .7rem 1.15rem;
  border-radius: 7px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-secondary { border-color: var(--edge); color: var(--ink); background: var(--surface); }

/* ---- sections ---- */

section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--edge); }

h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
}
h3 { font-size: 1.05rem; margin: 2rem 0 .5rem; letter-spacing: -.01em; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 2rem; }

/* ---- cards ---- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .45rem; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card p + p { margin-top: .7rem; }

/* ---- code ---- */

pre, code { font-family: var(--mono); }
code { font-size: .875em; background: var(--code-bg); padding: .15em .4em; border-radius: 4px; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .85rem;
  line-height: 1.6;
}
pre code { background: none; padding: 0; font-size: inherit; }
pre .c { color: var(--muted); }

/* ---- callout ---- */

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin: 1.75rem 0;
}
.note p { margin: 0; font-size: .93rem; }
.note strong { color: var(--ink); }

/* ---- steps ---- */

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.75rem;
}
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: .05rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--edge);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .8rem;
  display: grid;
  place-items: center;
}
ol.steps h3 { margin: 0 0 .35rem; font-size: 1rem; }
ol.steps p { margin: 0 0 .6rem; color: var(--muted); font-size: .93rem; }

/* ---- comparison / definition list ---- */

dl.facts { margin: 0; }
dl.facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: .95rem 0;
  border-top: 1px solid var(--edge);
}
dl.facts > div:last-child { border-bottom: 1px solid var(--edge); }
dl.facts dt { font-weight: 600; font-size: .93rem; }
dl.facts dd { margin: 0; color: var(--muted); font-size: .93rem; }

@media (max-width: 34rem) {
  dl.facts > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---- table ---- */

.scroll-x { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 30rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--edge); }
th { font-weight: 600; }
td code { white-space: nowrap; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--edge);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: .9rem;
}
footer .cols { display: flex; gap: 3rem; flex-wrap: wrap; }
footer ul { list-style: none; padding: 0; margin: .5rem 0 0; }
footer li { margin-bottom: .35rem; }
footer strong { color: var(--ink); font-size: .85rem; letter-spacing: .02em; }

.muted { color: var(--muted); }
.small { font-size: .87rem; }
