
:root {
  --bg: #0a0a0a;
  --night: #1a0f2e;
  --panel: rgba(20, 12, 34, 0.86);
  --panel-solid: #140c22;
  --field: #0e0918;
  --border: #2d1e4a;
  --border-strong: #46317a;
  --accent: #6a00ff;
  --accent-hover: #7d22ff;
  --accent-soft: rgba(106, 0, 255, 0.16);
  --crimson: #dc143c;
  --blood: #8b0000;
  --amber: #ffaa00;
  --text: #ededed;
  --muted: #a69fb8;
  --faint: #6f6787;
  --radius: 14px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(106, 0, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 108%, rgba(139, 0, 0, 0.22), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 32px;
}

a { color: #b88cff; text-underline-offset: 3px; }
a:hover { color: #d2b6ff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand img { width: 30px; height: 30px; }

.card {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 32px 30px;
}
.card.wide { max-width: 720px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h2 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

p { margin: 0 0 14px; }
.lead { color: #d8d2e6; font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

ul.list { margin: 0 0 14px; padding-left: 1.2rem; }
ul.list li { margin: 4px 0; }

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
}
.status svg { width: 28px; height: 28px; }
.tone-success .status { border-color: rgba(106, 0, 255, 0.6); }
.tone-review .status { border-color: rgba(255, 170, 0, 0.55); background: rgba(255, 170, 0, 0.1); }
.tone-danger .status { border-color: rgba(220, 20, 60, 0.6); background: rgba(139, 0, 0, 0.18); }

.steps { list-style: none; margin: 18px 0 6px; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 14px 12px 50px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 9, 24, 0.6);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 9, 24, 0.6);
}
.identity img { width: 40px; height: 40px; border-radius: 50%; }
.identity strong { display: block; line-height: 1.3; }
.identity span { color: var(--muted); font-size: 0.88rem; }

form { margin: 0; }
.field { margin: 0 0 18px; }
label.question { display: block; margin-bottom: 6px; font-weight: 600; }
input[type="text"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 76px; resize: vertical; }
input[type="text"]::placeholder, textarea::placeholder { color: var(--faint); }
input[type="text"]:focus, textarea:focus { border-color: var(--accent); }
.invalid input[type="text"], .invalid textarea { border-color: var(--crimson); }
.error { margin: 6px 0 0; color: #ff6b81; font-size: 0.88rem; }
.hint { margin: 6px 0 0; color: var(--faint); font-size: 0.82rem; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 9, 24, 0.6);
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent.invalid { border-color: var(--crimson); }

.button {
  display: inline-block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.button.secondary:hover { border-color: var(--accent); }

.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: #d8d2e6;
  font-size: 0.92rem;
}
.notice.danger { border-left-color: var(--crimson); background: rgba(139, 0, 0, 0.16); }

footer {
  width: 100%;
  max-width: 560px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
}
footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { padding: 24px 12px 24px; }
  .card { padding: 24px 18px; }
  h1 { font-size: 1.55rem; }
}
