/* static/css/app.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg:      #f0f4f8;
  --panel:   #ffffff;
  --text:    #1e293b;
  --muted:   #64748b;
  --line:    #e2e8f0;
  --accent:  #1d4ed8;
  --accent2: #1e40af;
  --radius:  10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }

.container { max-width: 1050px; margin: 0 auto; padding: 24px; }

/* ── Trust strip ─────────────────────────────────────────── */
.trustbar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 24px;
  letter-spacing: .1px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand a { color: var(--text); }
.navlinks { display: flex; gap: 4px; }
.navlinks a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.navlinks a:hover { background: var(--bg); color: var(--text); opacity: 1; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  margin-top: 20px;
  padding: 40px 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; }
.hero p  { margin: 0 0 20px; color: var(--muted); font-size: 17px; max-width: 58ch; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent2); border-color: var(--accent2); opacity: 1; }
.btn:hover { background: var(--bg); opacity: 1; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card h3 { margin: 0 0 8px; color: var(--text); }
.card p  { margin: 0; color: var(--muted); }

/* ── Grid ────────────────────────────────────────────────── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 26px; }
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.badge.open   { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.badge.locked { color: #b45309; border-color: #fde68a; background: #fffbeb; }

/* ── Table ───────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.table th { color: var(--muted); font-weight: 600; background: var(--bg); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }

/* ── Forms ───────────────────────────────────────────────── */
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

/* ── Form helpers ────────────────────────────────────────── */
.form-row  { margin-bottom: 18px; }
.form-hint { font-size: 13px; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radio-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: var(--panel);
  color: var(--muted);
  user-select: none;
}
.radio-pill:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.radio-pill input[type="radio"] { display: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  margin: 32px 0 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
