:root {
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #1a1a1a;
  background: #fff;
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
a { color: #2563eb; }

/* --- shared header/footer --- */
.site-header, .app-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}
.site-header .wrap, .app-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.nav-link { text-decoration: none; font-weight: 600; }
.site-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

/* --- marketing hero --- */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff, #fff);
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}
.hero .lede {
  font-size: 1.15rem;
  color: #444;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.button-lg {
  font-size: 1.05rem;
  padding: 0.75rem 1.5rem;
}

.features {
  padding: 3rem 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature h3 { margin: 0 0 0.5rem; }
.feature p { color: #444; margin: 0; }

.request-section {
  background: #f8fafc;
  padding: 3rem 0 4rem;
}
.request-section h2 { margin-top: 0; }
.success {
  color: #166534;
  font-weight: 600;
  background: #dcfce7;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

/* --- forms (shared) --- */
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}
input, textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
.hint { color: #666; font-size: 0.85rem; margin: -0.25rem 0 0; }
.error { color: #b91c1c; font-weight: 600; }

.button, button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  width: fit-content;
}
.link-button {
  background: none;
  color: #b91c1c;
  padding: 0;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* --- admin dashboard --- */
.centered {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  width: 320px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2.5rem;
}
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #ddd; vertical-align: top; }
.status {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #eee;
  font-family: monospace;
  font-size: 0.85rem;
}
.status-active, .status-new { background: #dcfce7; color: #166534; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-dismissed, .status-provisioned { background: #e5e7eb; color: #4b5563; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin-top: 1rem; }
dt { font-weight: 600; }
