@font-face {
  font-family: Roobert;
  src: url("/static/fonts/Roobert-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --rw-ink: #14151f;
  --rw-purple: #5047e2;
  --rw-pink: #e14989;
  --rw-orchid: #be5ec8;
  --rw-white: #ffffff;
  --rw-light-gray: #f7f7f8;
  --rw-secondary-btn: #f3f3f4;
  --rw-secondary-hover: #eaebeb;
  --rw-medium: #616161;
  --rw-border: #e5e5e5;
  --rw-accent: #ecebff;
  --rw-primary-hover: #43444c;
  --radius-button: 20px;
  --radius-card: 16px;
  --radius-input: 8px;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: Roobert, Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--rw-ink);
  background: var(--rw-light-gray);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.top, main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rw-ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.brand img { height: 28px; width: auto; }
.brand span { font-size: 0.95rem; }

.who {
  color: var(--rw-medium);
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

h1, h2, legend, button, .status {
  font-family: var(--font-display);
  font-weight: 600;
}

h1 { font-size: 1.75rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }

a { color: var(--rw-purple); }

.banner {
  margin: 0;
  padding: 0.7rem 1.25rem;
  background: var(--rw-accent);
  color: var(--rw-purple);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.stack { display: grid; gap: 0.9rem; }

label, legend {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--rw-ink);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-input);
  background: var(--rw-white);
}

input:focus, textarea:focus {
  outline: 2px solid var(--rw-purple);
  outline-offset: 1px;
}

button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  border-radius: var(--radius-button);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

button.primary {
  background: var(--rw-ink);
  color: var(--rw-white);
}

button.primary:hover { background: var(--rw-primary-hover); }

button.secondary {
  background: var(--rw-secondary-btn);
  color: var(--rw-ink);
}

button.secondary:hover { background: var(--rw-secondary-hover); }

button.ghost {
  background: transparent;
  color: var(--rw-ink);
}

button.ghost:hover { background: var(--rw-secondary-hover); }

button:disabled { opacity: 0.5; cursor: not-allowed; }

.notice, .error {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-card);
  background: var(--rw-white);
  box-shadow:
    0 4px 24px rgba(78, 70, 226, 0.08),
    0 2px 12px rgba(225, 73, 137, 0.04);
}

.error { color: #dc2626; }

.dev {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--rw-white);
  border-radius: var(--radius-card);
  box-shadow:
    0 4px 24px rgba(78, 70, 226, 0.08),
    0 2px 12px rgba(225, 73, 137, 0.04);
}

.cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; }

.cards li, table, fieldset, .answers {
  background: var(--rw-white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow:
    0 4px 24px rgba(78, 70, 226, 0.08),
    0 2px 12px rgba(225, 73, 137, 0.04);
}

.cards li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.cards a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.status { color: var(--rw-medium); text-transform: capitalize; font-size: 0.875rem; }
.quiet { color: var(--rw-medium); }

fieldset { padding: 0.9rem 1rem 1rem; }
.scores { display: flex; gap: 0.85rem; font-weight: 400; }
.scores label { display: flex; align-items: center; gap: 0.3rem; font-weight: 400; }

table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--rw-border); }
th { font-family: var(--font-display); font-size: 0.875rem; }
tr:last-child td { border-bottom: 0; }

.answers { padding: 0.4rem 1rem 1rem; }
.answers dt { font-weight: 600; margin-top: 0.9rem; }
.answers dd { margin: 0.2rem 0 0; white-space: pre-wrap; }
