:root {
  --bg: #101214;
  --surface: #181b1f;
  --surface-2: #1f2328;
  --line: #2b3036;
  --text: #eef0f2;
  --muted: #9aa3ad;
  --accent: #ff7a1a;
  --accent-ink: #1a0c00;
  --ok: #37c98b;
  --err: #ff6161;
  --radius: 14px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f4f1;
    --surface: #ffffff;
    --surface-2: #f0eee9;
    --line: #e2dfd8;
    --text: #15171a;
    --muted: #5d646c;
    --accent: #e8620a;
    --accent-ink: #ffffff;
    --ok: #13834f;
    --err: #c62828;
    color-scheme: light;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; fill: var(--accent); }
.brand span { color: var(--muted); font-weight: 600; }
.lang { color: var(--muted); text-decoration: none; font-size: .9rem; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.lang:hover { color: var(--text); border-color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.kicker { display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 850; max-width: 12ch; }
.lead { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Dashed centre line running across the bottom of the hero */
.road { position: absolute; left: 0; right: 0; bottom: 28px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 44px, transparent 44px 80px); opacity: .9; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 56px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features svg { width: 28px; height: 28px; fill: var(--accent); }
.features h2 { margin: 12px 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Form panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; margin-bottom: 28px; scroll-margin-top: 16px; }
.panel-head h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.03em; }
.panel-head p { margin: 8px 0 22px; color: var(--muted); max-width: 60ch; }
@media (min-width: 720px) { .panel { padding: 40px; } }

.form { display: grid; gap: 18px; }
.row { display: grid; gap: 18px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.inline { display: grid; gap: 12px; align-items: end; }
@media (min-width: 560px) { .inline { grid-template-columns: 1fr auto; } }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 650; font-size: .93rem; padding: 0; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[type=tel], input[type=email] {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
input:focus-visible, .btn:focus-visible, .chip input:focus-visible + span, .check input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input::placeholder { color: var(--muted); opacity: .7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; user-select: none; font-size: .95rem; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

.geo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.geo small { color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { display: grid; gap: 4px; }

.msg { color: var(--err); font-size: .85rem; }
.bad input:not([type=checkbox]) { border-color: var(--err); }
.bad .chip span { border-color: var(--err); }

.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.err { border-color: var(--err); color: var(--err); }

/* Spam honeypot, invisible to people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); }

/* Privacy notice */
.prose { max-width: 760px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.15; }
.prose h2 { font-size: 1.15rem; margin-top: 30px; }
.prose li { margin-bottom: 6px; }

/* Admin */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head small { color: var(--muted); font-weight: 400; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); white-space: nowrap; }
td small { color: var(--muted); }
.admin-nav { display: flex; gap: 8px; }
.hint { color: var(--muted); font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.actions button { font: inherit; font-size: .82rem; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap; }
.actions button:hover:not(:disabled) { border-color: var(--accent); }
.actions button:disabled { opacity: .45; cursor: not-allowed; }
.status { font-weight: 700; }
.status.listed { color: var(--ok); }
.status.rejected { color: var(--err); }
