/* The public pages: landing, sign-up. Same colours as the CV match page. */
:root {
  --bg: #f7f7f5;
  --panel: #fff;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --line: #e2e2dc;
  --accent: #2f5bd3;
  --accent-text: #fff;
  --error: #a32c2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --panel: #1f1f1d;
    --text: #ececea;
    --muted: #9b9b95;
    --line: #34342f;
    --accent: #7c9bf0;
    --accent-text: #10131c;
    --error: #f09a9a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.muted { color: var(--muted); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 16px; }
.site-header nav a:not(.button) { color: var(--text); text-decoration: none; }

.button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.button.big { padding: 12px 24px; font-size: 1.1rem; }

main { max-width: 980px; margin: 0 auto; padding: 0 16px 48px; }
main.narrow { max-width: 440px; }

.hero { padding: 48px 0 32px; max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 1.15rem; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 16px 0 40px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.step h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.step p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700;
}

.plans h2, .employers h2 { font-size: 1.4rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plan ul { padding-left: 20px; }
.plan li { margin-bottom: 6px; }
.badge { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

.employers { padding-top: 32px; max-width: 720px; }
.site-footer { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; font-size: 0.9rem; }

/* Sign-up form */
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack label { margin-top: 10px; font-weight: 600; }
.stack input[type=text], .stack input[type=email], .stack input[type=password] {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text);
}
.stack .button, .stack input[type=submit] { margin-top: 16px; }
.validation-errors { color: var(--error); padding-left: 20px; }

/* Account page */
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
}
.saved-key { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.saved-key p { margin-top: 0; }
.small { font-size: 0.85rem; }
.stack select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text);
}

/* Company pages */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
table.list .actions { white-space: nowrap; text-align: right; }
form.inline { display: inline; }
.button.small { padding: 4px 10px; font-size: 0.85rem; }
.copy-field { width: 100%; font: inherit; font-family: ui-monospace, monospace; font-size: 0.85rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg, transparent); color: var(--text); }
.copy-field.small { width: 16em; padding: 4px 6px; }
.narrow-section { max-width: 440px; margin-top: 32px; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 640px) {
    table.list thead { display: none; }
    table.list tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
    table.list td { display: block; padding: 2px 0; border: 0; }
    table.list td:first-child { font-weight: 600; }
    table.list .actions { text-align: left; white-space: normal; padding-top: 8px; }
    table.list .actions form.inline, table.list .actions .copy-field { display: inline-block; margin: 0 6px 6px 0; }
}
