:root {
  --shell: #edeff5;
  --card: #ffffff;
  --ink: #14162b;
  --muted: #6c7089;
  --line: #e0e3ec;
  --accent: #5a4fe0;
  --accent-soft: #ebe9fc;
  --ok: #10a37f;
  --warn: #c8452f;

  --display: "Outfit", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-lg: 22px;
  --r-md: 14px;
  --pad: clamp(22px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */

.masthead {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) var(--pad) clamp(30px, 5vw, 52px);
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(46px, 8.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 400;
  color: var(--muted);
}

/* ---------- layout ---------- */

.stage {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}

/* ---------- form panel ---------- */

.panel {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 46px);
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: #f6f7fa;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 15px 17px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

input[type="text"]::placeholder,
textarea::placeholder { color: #a2a6b8; }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}

.hint {
  margin: 8px 2px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.err {
  margin: 8px 2px 0;
  font-size: 13.5px;
  color: var(--warn);
  display: none;
}

.err.show { display: block; }
.form-err { margin-bottom: 16px; }

.field.invalid input,
.field.invalid textarea { border-color: var(--warn); background: #fdf5f4; }

/* honeypot */
.gate {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- drop zone ---------- */

.drop {
  position: relative;
  border: 1.5px dashed #cbd0dd;
  border-radius: var(--r-md);
  background: #f6f7fa;
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.drop:hover, .drop:focus-visible { border-color: var(--accent); background: #fbfbfe; }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; border-color: #d5d9e4; background: #fff; text-align: left; cursor: default; }

.drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop.has-file input[type="file"] { display: none; }

.drop-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 7px;
}

.drop-lead {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 500;
}

.drop-sub { margin: 0; font-size: 13.5px; color: var(--muted); }

.drop-filled { display: flex; flex-direction: column; gap: 3px; }

.file-name {
  margin: 0;
  font-family: var(--mono);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.file-size { margin: 0; font-size: 13.5px; color: var(--muted); }

.file-clear {
  align-self: flex-start;
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--warn);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- confirm ---------- */

.confirm { padding-top: 4px; }

.check {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
  color: #4b4f68;
  margin-bottom: 0;
}

.check input {
  appearance: none;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  border: 1.5px solid #c3c8d6;
  border-radius: 7px;
  background: #f6f7fa;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color: var(--accent);
}

.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- progress + submit ---------- */

.progress { margin: 26px 0 4px; }

.progress-bar {
  height: 6px;
  border-radius: 99px;
  background: #e6e8ef;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.progress-label {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.submit {
  width: 100%;
  margin-top: 12px;
  padding: 19px 24px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.submit:hover { background: var(--accent); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.submit[disabled] { background: #b6b9c9; cursor: not-allowed; transform: none; }

/* ---------- success ---------- */

.done { text-align: left; }

.done-mark {
  display: inline-block;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ok);
  background: #e4f5f0;
  padding: 6px 12px;
  border-radius: 7px;
}

.done h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.done-body { margin: 0 0 24px; color: var(--muted); max-width: 42ch; }

.ref {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 27px);
  letter-spacing: 0.06em;
  padding: 20px 22px;
  background: #f6f7fa;
  border-radius: var(--r-md);
  overflow-wrap: anywhere;
}

.done-note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

.ghost {
  margin-top: 30px;
  padding: 15px 26px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.ghost:hover { border-color: var(--accent); color: var(--accent); }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .panel { border-radius: 18px; }
  .drop { padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
