/* Reps — public site. One stylesheet for every page, EN and ES. */

:root {
  --bg: #0b1017;
  --surface: #111823;
  --border: #1e2835;
  --text: #e7edf5;
  --muted: #94a3b5;
  --accent: #a6ff00;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 16px 96px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

header.site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

header.site img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
}

header.site .name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

header.site .lang {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

header.site .lang a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

header.site .lang a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Type ───────────────────────────────────────────────────────────── */

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  color: var(--accent);
}

p, li { color: var(--text); }

.updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.lead { font-size: 19px; color: var(--muted); }

ul { padding-left: 22px; }
li { margin: 8px 0; }

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

strong { color: #fff; }

/* ── Blocks ─────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card.warn { border-color: #3a3320; background: #1a1710; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

/* ── Index links ────────────────────────────────────────────────────── */

.links { list-style: none; padding: 0; margin: 32px 0 0; }

.links li { margin: 0 0 12px; }

.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.links a:hover { border-color: var(--accent); }

.links span {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  .wrap { padding: 32px 16px 72px; }
}

/* ── Account deletion form ──────────────────────────────────────────── */

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  background: #0b1017;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

input:focus { outline: none; border-color: var(--accent); }

button {
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #0b1017;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

button.danger { background: #ff4d4d; color: #fff; }

.sep {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 4px;
}

.msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  display: none;
}

.msg.error { display: block; background: #2a1414; border: 1px solid #5a2222; color: #ffb4b4; }
.msg.ok    { display: block; background: #122113; border: 1px solid #244a26; color: #b8f5bb; }

.step { display: none; }
.step.on { display: block; }

.who {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 4px;
}

.who strong { color: var(--accent); }
