:root {
  --bg: #eef3f0;
  --ink: #12241c;
  --muted: #4d5f56;
  --accent: #145c45;
  --accent-deep: #0d3d2e;
  --line: #c5d2cb;
  --card: #f7faf8;
  --warn: #8a6a12;
  --danger: #8b2e2e;
  --ok: #145c45;
  --font: "Figtree", "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 0%, #d8e8df 0%, transparent 48%),
    radial-gradient(ellipse at 92% 8%, #c9ddd4 0%, transparent 42%),
    linear-gradient(180deg, #f4f7f5 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
code { font-size: 0.9em; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(6px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top nav a { text-decoration: none; color: var(--ink); }
.who { color: var(--muted); font-size: 0.9rem; }

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  flex: 1;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 36rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.note, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.panel.narrow { max-width: 420px; }
.panel.wide { width: 100%; }
.panel h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.panel h2 { font-size: 1.05rem; margin-top: 1.5rem; }

.muted { color: var(--muted); }
.flash {
  background: #e6f0ea;
  border: 1px solid #b7cfc2;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn.small { padding: 0.35rem 0.6rem; font-size: 0.8rem; font-weight: 500; }
.linkish {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.inline { display: inline; }

.form { display: grid; gap: 0.35rem; margin: 1rem 0; }
.form label { font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; }
.form input, .form select {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  background: #fff;
}
.err { color: var(--danger); font-size: 0.85rem; }

.callout {
  padding: 0.85rem 1rem;
  border-radius: 3px;
  margin: 1rem 0;
  border: 1px solid var(--line);
}
.callout.warn { background: #faf3d8; border-color: #e2d29a; color: var(--warn); }
.callout.danger { background: #f8e8e8; border-color: #e0b4b4; color: var(--danger); }
.callout.ok { background: #e6f0ea; border-color: #b7cfc2; color: var(--ok); }

.facts { padding-left: 1.1rem; color: var(--muted); }
.status {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eee;
}
.status.pending { background: #faf3d8; color: var(--warn); }
.status.trial, .status.active { background: #e6f0ea; color: var(--ok); }
.status.suspended { background: #f8e8e8; color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ops { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}
.auth-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.auth-panel {
  box-shadow: 0 12px 40px rgba(13, 61, 46, 0.06);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .hero h1 { max-width: none; }
  .ops { flex-direction: column; align-items: flex-start; }
}
