:root {
    --bg: #0f1115;
    --card: #1a1d24;
    --text: #e8e9ec;
    --muted: #9aa0aa;
    --accent: #5b9dff;
    --accent-hover: #4287f5;
    --ok-bg: #1e3a2b;
    --ok-text: #b6f0c9;
    --err-bg: #3a1e1e;
    --err-text: #f0b6b6;
    --border: #2a2e38;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.lead {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1rem;
}

.subscribe {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

.subscribe input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #0f1115;
    color: var(--text);
}

.subscribe input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.subscribe button {
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.subscribe button:hover {
    background: var(--accent-hover);
}

.privacy {
    margin: 16px 0 0;
    font-size: 0.825rem;
    color: var(--muted);
}

.privacy a {
    color: var(--muted);
    text-decoration: underline;
}

.msg {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.msg-ok  { background: var(--ok-bg);  color: var(--ok-text); }
.msg-err { background: var(--err-bg); color: var(--err-text); }

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
