:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --surface: #0f172a;
  --surface-alt: #020617;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success: #22c55e;
  --shadow: rgba(2, 6, 23, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 6vw 2rem;
  background: linear-gradient(135deg, #020617, #0f172a 55%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: 0 0 0.75rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn.primary {
  background: var(--primary);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.3);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn.ghost:hover {
  background: rgba(56, 189, 248, 0.12);
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px var(--shadow);
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

main {
  padding: 2rem 6vw 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.panel {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 8px 20px var(--shadow);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field input,
.field textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #0b1220;
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.3);
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.preview {
  position: sticky;
  top: 1.5rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.status {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
}

.status.ready {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}

.status.prepared {
  background: rgba(56, 189, 248, 0.18);
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.preview-body {
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: #0b1220;
  min-height: 260px;
}

.preview-body h3 {
  margin-top: 0;
}

.preview-body ul {
  padding-left: 1.2rem;
}

.empty {
  color: var(--muted);
  margin: 0;
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.preview-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checklist {
  background: linear-gradient(135deg, #0b1220, #0f172a 60%);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

footer {
  padding: 2rem 6vw 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-tile {
  height: 200px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.helper {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

@media (max-width: 800px) {
  .preview {
    position: static;
  }
}
