:root {
  --bg: #0b0d12;
  --surface: #141821;
  --surface-2: #1b2030;
  --border: #262c3d;
  --text: #e6e9f2;
  --muted: #9aa3b8;
  --accent: #7c8cff;
  --accent-2: #3dd6b5;
  --danger: #ff6b81;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1a1f3a 0%, var(--bg) 60%);
  background-color: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer { color: var(--muted); font-size: 14px; justify-content: center; }

.brand { color: var(--text); font-weight: 650; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12; font-weight: 800;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }

.hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 24px 0 8px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.card h2, .card h3 { margin-top: 0; }

.pill {
  font-size: 12px; font-weight: 600; vertical-align: middle;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}

code { font-family: var(--mono); font-size: 0.92em; }
pre {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; overflow-x: auto;
}

.codes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.codes li { background: var(--surface-2); border-radius: 6px; padding: 2px 8px; }

.method {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; margin-right: 6px;
  background: var(--surface-2); color: var(--accent);
}
.method-GET { color: var(--accent-2); }
.method-DELETE { color: var(--danger); }
.op .summary { font-weight: 600; margin: 0 0 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-top: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-footer { flex-direction: column; gap: 4px; text-align: center; }
.footer-links a { color: var(--muted); }

.landing-hero { padding: 32px 0 8px; }
.landing-hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; max-width: 760px; }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0d12;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.features .card { margin: 0; }

.legal h2 { margin-top: 32px; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* Connect flow */
.connect h1 { max-width: 720px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pill.ok { color: var(--accent-2); border-color: var(--accent-2); }
.pill.danger { color: var(--danger); border-color: var(--danger); }
button.button { cursor: pointer; border: 0; font: inherit; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--border); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-2); font-weight: 700; }
.checklist code { color: var(--muted); font-size: 12px; margin-left: 6px; }

.accounts { list-style: none; padding: 0; margin: 0 0 20px; }
.accounts li, .accounts label { display: flex; align-items: center; gap: 12px; }
.accounts li { padding: 10px 0; border-top: 1px solid var(--border); }
.accounts li:first-child { border-top: 0; }
.accounts label { cursor: pointer; width: 100%; }
.accounts input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-blank {
  display: inline-grid; place-items: center; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}

/* Data deletion status */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Forms (apply) */
.apply-hero h1 { max-width: 720px; }
.apply-card { max-width: 680px; padding: 24px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.optional, .field-hint { color: var(--muted); font-weight: 400; }
.field-hint { font-size: 14px; margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=number], .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: #3a4260; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin: 0; }
.form-notice {
  margin: 0 0 20px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--danger); background: rgba(255, 107, 129, 0.08); color: var(--text);
}
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500 !important;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.choice input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); }
.button-lg { padding: 13px 22px; font-size: 17px; justify-self: start; }
/* The honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Focus: always visible for keyboard users. */
a:focus-visible, button:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px;
}
.field input:focus-visible, .field textarea:focus-visible, .choice input:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px; border-color: var(--accent);
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.button-sm { padding: 8px 14px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.site-header { flex-wrap: wrap; gap: 12px; }
.site-nav { flex-wrap: wrap; gap: 8px 18px; }
