:root {
  --ink: #33373d;
  --paper: #ffffff;
  --accent: #03bebd;
  --accent-soft: #dff7f6;
  --muted: #777777;
  --line: #e5e7eb;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 60vw;
  height: auto;
}

.brand-logo-lg {
  width: 320px;
  max-width: 80vw;
}

.brand-logo-sm {
  width: 150px;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 18px;
}

.landing .mark {
  opacity: 0;
  transform: scale(0.85);
  animation: appear 900ms cubic-bezier(.2,.8,.2,1) forwards;
}

.landing .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: fade-up 700ms ease-out 400ms forwards;
}

.landing .skip {
  margin-top: 28px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: fade-up 700ms ease-out 900ms forwards;
}

@keyframes appear {
  to { opacity: 1; transform: scale(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Form ---------- */

.page-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.wrap h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.wrap p.lead {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin: 0 0 18px;
}

legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 12px 0 4px;
}

label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin: 8px 0;
}

label.checkbox input { width: auto; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 70px; }

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.conditional {
  margin-left: 26px;
}
.conditional[hidden] { display: none; }

.turnstile-wrap { margin: 18px 0; }

button.submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}
.status.error { color: var(--accent); }
.status.ok { color: #2a7a4d; }

.success-screen {
  text-align: center;
  padding: 60px 20px;
}
.success-screen[hidden] { display: none; }

/* ---------- Admin ---------- */

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-header .stats {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-actions a, .admin-actions button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  white-space: nowrap;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--accent-soft);
  position: sticky;
  top: 0;
}

tbody tr:hover { background: #f5f2f8; }
