:root {
    --background: #222222;
    --surface: #333333;
    --text-primary: #ffffff;
    --text-muted: #999999;
    --accent: #a0c6ff;
    --border: #3b3d40;
    --danger: #b10f41;
    --radius: 10px;
    --container: 940px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

main, footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0; }

/* The hero headline is 120px in the design system. Below the widest breakpoint
   it scales down rather than wrapping into four lines on a phone. */
h1 { font-size: clamp(40px, 9vw, 120px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 24px; }
h3 { font-size: 20px; margin-bottom: 8px; }

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 24px;
    top: 24px;
    background: var(--surface);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 100;
}

.lang {
    max-width: var(--container);
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.hero { padding: 96px 0 48px; }
.lede { font-size: 24px; color: var(--text-primary); margin-top: 24px; }
.intro { font-size: 20px; color: var(--text-muted); max-width: 640px; }

section { padding: 48px 0; border-top: 1px solid var(--border); }

.muted { color: var(--text-muted); }
.close { font-size: 20px; font-weight: 700; }
/* The closing line is a conclusion, not the next line of the block above it. */
section > .close { margin-top: 24px; }

.why { margin: 0; display: grid; gap: 16px; }
.why div { display: flex; gap: 8px; flex-wrap: wrap; }
.why dt { font-weight: 700; }
.why dd { margin: 0; color: var(--text-muted); flex: 1 1 240px; }

.cards {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .cards { grid-template-columns: 1fr 1fr; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.card p { margin: 0; color: var(--text-muted); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--background);
    color: var(--text-muted);
    vertical-align: middle;
}

.approach ul { list-style: none; padding: 0; margin: 0 0 24px; }
.approach li { font-size: 24px; font-weight: 700; }

label { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }

.input {
    display: block;
    width: 100%;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
.input:focus { border-color: var(--accent); outline: none; }

textarea.input { resize: vertical; }

.counter { color: var(--text-muted); font-size: 12px; margin-top: -8px; }

.btn-primary {
    background: var(--accent);
    color: var(--background);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Hidden from people, offered to bots. Not display:none — some bots skip what
   is not rendered, and this one has to look fillable. */
.pot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error { color: var(--danger); font-size: 14px; margin-top: -8px; }
.confirmation { font-size: 20px; font-weight: 700; }

footer {
    padding-top: 48px;
    padding-bottom: 48px;
    border-top: 1px solid var(--border);
}
.mark { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.links { display: flex; gap: 16px; margin: 24px 0 0; }

/* Guarded by .js, set by a one-line script in the head. Without JavaScript the
   sections are never hidden, so the page stays readable rather than blank. */
.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
