:root {
  color-scheme: light;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --soft: #eef2ff;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.04);
  font-family: Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}

.site-main {
  width: min(880px, calc(100% - 32px));
  margin: 48px auto 64px;
}

.hero h1,
.card h1 {
  margin: 8px 0 12px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.card h1 { font-size: 28px; }

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead, .muted { color: var(--muted); }

.actions, .form-footnote { margin-top: 24px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.narrow { width: min(440px, 100%); margin: 0 auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

label { font-size: 14px; font-weight: 600; }

input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.button-primary { background: var(--brand); color: var(--brand-ink); }
.button-primary:hover { background: #4338ca; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-block { width: 100%; }

.field-error, .form-errors { color: var(--danger); font-size: 14px; }
.form-errors:empty { display: none; }
.form-errors ul { margin: 0 0 12px; padding-left: 18px; }

@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .site-nav a:not(.button) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
