:root {
  color-scheme: dark;
  --bg: #14170f;
  --bg-2: #1d2416;
  --line: #33402a;
  --ink: #eef3e4;
  --muted: #a7b39a;
  --accent: #d6f25c;
  --accent-ink: #1a2208;
  --danger: #ff8d72;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(214, 242, 92, 0.16), transparent 60%),
    linear-gradient(180deg, #1a2114 0%, var(--bg) 280px);
}

main {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 20px;
  align-items: start;
}

.hero-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: zoom-in;
}

.hero-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

#hero-modal {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #0c100a;
  box-shadow: var(--shadow);
  overflow: auto;
}

#hero-modal::backdrop {
  background: rgba(8, 10, 6, 0.82);
}

.modal-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 12px;
}

.modal-shots figure { margin: 0; }

.modal-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.modal-shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 16, 10, 0.82);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.drone { width: 28px; height: 28px; display: block; flex: none; }

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

h2 {
  margin: 8px 0 0;
  max-width: 36ch;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lede, .footnote {
  color: var(--muted);
  line-height: 1.5;
}

.lede { max-width: 62ch; margin: 8px 0 0; font-size: 15px; }

.help {
  margin-top: 10px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.help summary {
  width: fit-content;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
}

.help[open] summary { margin-bottom: 10px; }

.help ol { margin: 0; padding-left: 1.25em; }

.help li + li { margin-top: 8px; }

.help strong { color: var(--ink); font-weight: 650; }

.panel {
  margin-top: 16px;
  padding: 16px;
  background: rgba(29, 36, 22, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.drop {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1.5px dashed #546348;
  border-radius: 12px;
  background: #171d12;
  cursor: pointer;
}

.drop:hover, .drop.over, .drop:focus-within {
  border-color: var(--accent);
  background: #202818;
}

.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.drop-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.drop-title { font-size: 16px; letter-spacing: -0.03em; }

.drop-meta { color: var(--muted); font-size: 12px; line-height: 1.3; }

.drop.has-file .drop-title { color: var(--accent); }

.options {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  margin-top: 16px;
}

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.check {
  flex-direction: row;
  align-items: center;
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 15px;
}

select, input[type="number"], input[type="password"], input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #12170e;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
}

.actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

button, .button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: wait; }

.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.token-row { display: flex; gap: 8px; }
.token-row input { flex: 1; }

.error { margin: 0; color: var(--danger); }

.job-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.job-head p { margin: 0; }

.bar {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: #10150d;
  overflow: hidden;
}

#bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

#bar-fill.busy {
  width: 35%;
  animation: slide 1.1s ease-in-out infinite;
}

@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

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

#preview {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  background: #0c100a;
  border-radius: 12px;
}

#preview[hidden] { display: none; }

#preview-note, #price { margin: 8px 0 0; }

.discount {
  display: block;
  max-width: 220px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.discount[hidden] { display: none; }

.discount input { display: block; width: 100%; margin-top: 6px; }

#pay { margin-top: 16px; }

#sumup-card { max-width: 420px; min-height: 180px; }

#pay-hosted { color: var(--accent); }

.footnote { font-size: 13px; }

@media (max-width: 800px) {
  header { grid-template-columns: 1fr; }
  .hero-open { max-width: 480px; }
  .modal-shots { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .drops, .options { grid-template-columns: 1fr; }
  main { padding-top: 16px; }
}
