/* Agile Software LLC — site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --text: #16181d;
  --text-muted: #5b6270;
  --line: #e3e6ea;
  --accent: #1f5fd6;
  --accent-hover: #1a4fb3;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101215;
    --bg-alt: #171a1f;
    --text: #eceef1;
    --text-muted: #a0a7b4;
    --line: #262a31;
    --accent: #6fa1ff;
    --accent-hover: #8fb7ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- header ---------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text); }

.nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

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

main { display: block; }

section { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
section.alt { background: var(--bg-alt); }

.hero { padding: 6.5rem 0 5.5rem; }

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 680;
  margin: 0 0 1.25rem;
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  font-weight: 640;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 620;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1.15rem; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--text-muted); }

/* ---------- button ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 560;
  font-size: 1rem;
  border: 0;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

@media (prefers-color-scheme: dark) {
  .btn { color: #0d1014; }
  .btn:hover { color: #0d1014; }
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.grid p { margin-bottom: 0; }

/* ---------- cards / detail lists ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  background: var(--bg);
}

.detail {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 0.65rem 2rem;
}
.detail dt { color: var(--text-muted); }
.detail dd { margin: 0; }

@media (max-width: 34rem) {
  .detail { grid-template-columns: 1fr; gap: 0.15rem; }
  .detail dd { margin-bottom: 0.85rem; }
}

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.9rem;
}

/* ---------- prose pages (privacy) ---------- */

.prose { padding: 4rem 0 5rem; }
.prose h2 { margin-top: 2.75rem; font-size: 1.3rem; }
.prose h2:first-of-type { margin-top: 2rem; }
.prose address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
}
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer .legal-name { color: var(--text); font-weight: 600; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer .copyright {
  width: 100%;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
}
