:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5a6577;
  --border: #dde2ea;
  --accent: #0f6e5c;
  --accent-text: #ffffff;
  --accent-soft: #e3f2ee;
  --warn: #a4462f;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e27;
    --text: #e6eaf0;
    --muted: #9aa5b5;
    --border: #2a3441;
    --accent: #3fbf9f;
    --accent-text: #0b1a16;
    --accent-soft: #15302a;
    --warn: #e88a72;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }

header { padding-top: 56px; padding-bottom: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.15; margin: 24px 0 16px; }
h2 { font-size: 1.4rem; margin: 48px 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }

.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { filter: brightness(1.08); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.steps { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 16px 60px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps p, .card p { margin: 0; color: var(--muted); }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

form.signup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 16px;
}

label { display: grid; gap: 6px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

textarea { min-height: 110px; resize: vertical; }

.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 5px; flex: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 0.92rem; color: var(--muted); }

.todo {
  background: var(--accent-soft);
  border-left: 4px solid var(--warn);
  padding: 12px 16px;
  border-radius: 6px;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer a { color: var(--muted); }

.admin main { max-width: 1200px; padding-top: 24px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 0.92rem; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
td:last-child { white-space: pre-wrap; min-width: 240px; }
