/* Proofred web app.
 *
 * Palette from assets/brand/README.md — ink, red, grey. The red is
 * #E5484D and appears in exactly two places here: the wordmark, and the
 * primary action. It is the spelling underline's colour, so spending it on
 * anything decorative would make the brand mean less.
 */

:root {
  color-scheme: light dark;

  --ink: #1c1c1e;
  --red: #e5484d;
  --red-hover: #cf3f44;
  --grey: #8e8e93;

  --bg: #fbfbfa;
  --surface: #ffffff;
  --line: #e8e8e6;
  --text: var(--ink);
  --text-soft: #62626a;

  --radius: 10px;
  --font: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1b1b1e;
    --line: #2b2b30;
    --text: #f2f2f4;
    --text-soft: #a0a0a8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.wordmark { color: var(--text); display: block; }
.wordmark svg { display: block; height: 34px; width: auto; }

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
     color: var(--text-soft); margin: 10px 0 0; }
p { margin: 0; }
.sub { color: var(--text-soft); }
.muted { color: var(--text-soft); font-size: 13px; }

.error {
  color: var(--red);
  font-size: 14px;
  border-left: 2px solid var(--red);
  padding-left: 10px;
}

.stack { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.label { font-size: 13px; font-weight: 500; color: var(--text-soft); }

input {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
input:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
input:disabled { opacity: 0.6; }

.primary, .secondary {
  font: inherit;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  width: 100%;
  border: 1px solid transparent;
}

.primary { background: var(--red); color: #fff; }
.primary:hover { background: var(--red-hover); }
.primary:disabled { opacity: 0.6; cursor: default; }

.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.secondary:hover { border-color: var(--grey); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.row:last-child { border-bottom: 0; }
.row-label { color: var(--text-soft); }
.row-value { font-variant-numeric: tabular-nums; }

.pill {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.pill-on { border-color: var(--red); color: var(--red); }

.actions { margin-top: 6px; }

.foot { color: var(--text-soft); font-size: 12px; text-align: center; max-width: 340px; }
.foot p { margin: 0; }

@media (max-width: 420px) {
  .card { padding: 22px; }
}
