:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0057ff;
  --primary-dark: #003db5;
  --border: #e5e7eb;
  --yellow: #f6c945;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.hero {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  border-radius: 28px;
  padding: 42px;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

.eyebrow {
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 14px;
}

h2 {
  margin-top: 0;
  font-size: 26px;
}

.hero p {
  max-width: 720px;
  color: #d1d5db;
  font-size: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
}

.form {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: white;
}

button,
.download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.download:hover {
  background: var(--primary-dark);
}

.alerts {
  margin-bottom: 20px;
}

.alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 14px 18px;
  border-radius: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.stats div {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.stats strong {
  display: block;
  font-size: 24px;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.preview {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: white;
}

@media (max-width: 800px) {
  .grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }
}

.meta-line {
  margin: 6px 0 10px;
  font-size: 16px;
}

.meta-line.subtle {
  color: var(--muted);
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-height: 52px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  transform: scale(1.2);
}

h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 22px;
}