@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/PlusJakartaSans-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #0b0b12;
  --ink-2: #2a2a33;
  --muted: #5b5b66;
  --subtle: #8b8994;
  --line: #e9e3e7;
  --line-strong: #d6ced4;
  --bg: #f7f4f6;
  --card: #ffffff;
  --tint: #faf8fa;
  --brand: #d6097f;
  --brand-hover: #b8006e;
  --brand-bright: #ff2ea6;
  --brand-soft: #fff0f7;
  --brand-line: #f6d3e6;
  --lime: #c8f73c;
  --lime-strong: #8fcb00;
  --lime-ink: #3f5700;
  --danger: #b4232a;
  --danger-soft: #fdf1f1;
  --focus: rgba(214, 9, 127, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, input { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 34px; height: 34px; }

/* ---------- Header ---------- */
.masthead {
  background:
    radial-gradient(640px 320px at 88% -10%, rgba(255, 46, 166, 0.24), transparent 70%),
    var(--ink);
  color: #fff;
  padding: 36px 24px 96px;
}
.masthead__inner { max-width: 1120px; margin: 0 auto; }
.masthead__logo { display: block; height: 28px; width: auto; margin-bottom: 36px; }
.masthead__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.masthead__lead { margin-top: 12px; max-width: 600px; color: #c9c7d1; font-size: 16px; }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: #e7e5ec;
  font-size: 13.5px;
  font-weight: 500;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--lime); width: 16px; height: 16px; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1120px;
  margin: -56px auto 0;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.form, .success, .notice { grid-column: 1; }
.checklist { grid-column: 2; grid-row: 1 / span 3; }
.layout.is-done { grid-template-columns: minmax(0, 720px); justify-content: center; }
.card, .upload, .upload-pair { scroll-margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(11, 11, 18, 0.04);
}
.form .card + .card { margin-top: 20px; }
.card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.card__head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.card__sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.notice { border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 500; }
.notice--error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f3c9cb; }

/* ---------- Fields ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.grid--tight { gap: 14px; }
.field--wide { grid-column: 1 / -1; }

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.optional {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f2eef1;
  padding: 1px 8px;
  border-radius: 999px;
}

input[type='text'], input[type='tel'], input[type='email'], input[type='url'] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 16px; /* 16px stops iOS from zooming on focus */
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #a7a4ae; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
input[aria-invalid='true'] { border-color: var(--danger); }
input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgba(180, 35, 42, 0.15); }

.field__hint { margin-top: 6px; color: var(--muted); font-size: 13px; }
.field__error { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 600; }

.money { position: relative; }
.money input { padding-left: 28px; padding-right: 52px; font-variant-numeric: tabular-nums; }
.money__symbol, .money__unit { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money__symbol { left: 14px; }
.money__unit { right: 14px; font-size: 12.5px; font-weight: 600; }

/* SSN block */
.secure {
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: #fff8fb;
}
.secure__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 13.5px; color: var(--ink-2); }
.secure__head strong { font-size: 14.5px; color: var(--ink); }
.secure__head .icon { color: var(--brand); margin-top: 2px; }

.reveal { position: relative; }
.reveal input { padding-right: 50px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.masked { -webkit-text-security: disc; }
.reveal__btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.reveal__btn:hover { background: #f4eff2; color: var(--ink); }
.reveal__btn[aria-pressed='true'] { color: var(--brand); }
.reveal__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Checkboxes ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check--inline { margin-bottom: 12px; padding: 10px 12px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; }
#attestation-wrap { padding: 16px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.55; }
#attestation-wrap.is-invalid { border-color: var(--danger); }

/* ---------- Uploads ---------- */
.uploads { display: grid; gap: 14px; }
.upload, .upload-pair { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; transition: border-color 0.15s; }
.upload.is-complete, .upload-pair.is-complete { border-color: #bfe27a; }
.upload.is-invalid { border-color: var(--danger); }
.upload__title, .upload-pair__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.upload__hint { margin: 4px 0 12px; color: var(--muted); font-size: 13.5px; }
.upload.is-complete > .upload__title::after, .upload-pair.is-complete > .upload-pair__title::after {
  content: 'Added';
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lime-ink);
  background: #eefbcf;
  padding: 1px 8px;
  border-radius: 999px;
}
.upload.is-waived > .upload__title::after { content: 'Not needed'; color: var(--muted); background: #f2eef1; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }

.upload-pair__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.upload-pair .upload { border: 0; padding: 0; min-width: 0; }
.upload-pair .upload__title { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.upload-pair .upload.is-complete > .upload__title::after { content: none; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--tint);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone .icon--lg { color: var(--brand); }
.dropzone--compact { padding: 16px 12px; }
.dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.upload.is-full .dropzone, .upload.is-waived .dropzone, .upload.is-waived .files { display: none; }
.dropzone__or { white-space: nowrap; }

.pick {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pick:hover { border-color: var(--brand); color: var(--brand); }
.pick:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files:not(:empty) { margin-top: 10px; }
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
}
.file__thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #f0ebef;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.file__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file__meta { flex: 1; min-width: 0; }
.file__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__size { font-size: 12.5px; color: var(--muted); }
.file__remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.file__remove:hover { background: var(--danger-soft); color: var(--danger); }
.file__remove:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Submit ---------- */
.summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}
.summary:focus { outline: none; }
.summary__title { font-weight: 700; }
.summary ul { margin: 8px 0 0; padding-left: 18px; }
.summary a { color: var(--danger); font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 18px; min-height: 65px; }

.submit {
  margin-top: 20px;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.submit:hover:not(:disabled) { background: var(--brand-hover); }
.submit:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.submit:disabled { background: #e7a3c8; cursor: not-allowed; }

.progress { margin-top: 16px; }
.progress__label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: #f3e7ef; overflow: hidden; display: block; }
progress::-webkit-progress-bar { background: #f3e7ef; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; transition: width 0.2s; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }

.fineprint { margin-top: 14px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 56px 28px; }
.success:focus { outline: none; }
.success__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.success h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.success p { max-width: 520px; margin: 12px auto 0; color: var(--muted); }
.success__ref { color: var(--ink) !important; font-size: 15px; }
.success__ref strong { display: inline-block; margin-left: 6px; padding: 4px 12px; border-radius: 8px; background: #f4f0f3; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.success__note { font-size: 13.5px; }

/* ---------- Checklist ---------- */
.checklist { position: sticky; top: 24px; }
.checklist__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(11, 11, 18, 0.04); }
.checklist__title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.checklist__count { margin-top: 4px; font-size: 16px; font-weight: 700; }
.checklist__bar { margin-top: 10px; height: 6px; }
.checklist__bar::-webkit-progress-value { background: var(--lime-strong); }
.checklist__bar::-moz-progress-bar { background: var(--lime-strong); }
.checklist__items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.checklist__items a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.checklist__items a:hover { background: var(--tint); color: var(--ink); }
.checklist__items a::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  background: #fff center / 12px no-repeat;
}
.checklist__items li.is-done a::before {
  border-color: var(--lime-strong);
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230b0b12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.checklist__help { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.footer { text-align: center; padding: 8px 16px 32px; color: var(--subtle); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: -48px; }
  .checklist { order: -1; position: static; }
  .checklist__items, .checklist__help { display: none; }
  .checklist__card { padding: 16px 18px; }
}

@media (max-width: 640px) {
  .masthead { padding: 28px 16px 80px; }
  .masthead__logo { margin-bottom: 24px; height: 24px; }
  .trust { flex-direction: column; gap: 8px; }
  .layout { padding: 0 16px 40px; }
  .card { padding: 22px 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card__head { margin-bottom: 18px; }
  .secure { padding: 16px 14px; }
  .upload, .upload-pair { padding: 16px 14px; }
}

@media (max-width: 480px) {
  .upload-pair__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

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