:root {
  --navy: #0e1830;
  --navy-2: #1a2848;
  --page: #eceff6;
  --sheet: #ffffff;
  --field: #f5f7fb;
  --line: #d7dcea;
  --ink: #0e1830;
  --muted: #5d6783;
  --star: #ffc533;
  --star-deep: #e6a800;
  --err: #c0262d;
  --ok: #1f8a56;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.55 "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; margin: 0; letter-spacing: -0.015em; }

/* layout */
.shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto; padding: 28px 20px 72px; }
.panel { position: sticky; top: 28px; align-self: start; background: var(--navy); color: #fff; border-radius: 22px; overflow: hidden; }
.panel-inner { padding: 34px 30px 30px; }
.panel h1 { font-size: 2.35rem; line-height: 1.04; font-weight: 700; }
.lede { color: #b9c1d9; margin: 14px 0 28px; }

.progress { height: 6px; background: var(--navy-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--star); border-radius: 99px; transition: width .35s ease; }
.progress-label { font-size: .85rem; color: #b9c1d9; margin: 8px 0 22px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4a5a82; margin-top: 2px; position: relative; transition: background .2s, border-color .2s; }
.checklist li.done i { background: var(--star); border-color: var(--star); }
.checklist li.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist b { display: block; font-weight: 600; font-size: .95rem; }
.checklist span { display: block; color: #b9c1d9; font-size: .85rem; overflow-wrap: anywhere; }
.checklist li.done span { color: #e9edf9; }

.sheet { background: var(--sheet); border-radius: 22px; padding: 12px 40px 40px; min-width: 0; }
section { padding: 34px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 6px; }
.help { color: var(--muted); margin: 0 0 18px; }
section > h2 + .field, section > h2 + .row { margin-top: 18px; }

/* fields */
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label { font-weight: 600; font-size: .95rem; }
label em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
input[type=text], input[type=email], input[type=date], textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 48px; }
input::placeholder, textarea::placeholder { color: #98a1ba; }
input:hover, textarea:hover { border-color: #b7bfd6; }
input:focus, textarea:focus { outline: 0; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 197, 51, .55); }
.note { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.err { color: var(--err); font-size: .88rem; font-weight: 500; margin: 8px 0 0; }
.err:empty { display: none; }
.field:has(.err:not(:empty)) input, .field:has(.err:not(:empty)) textarea { border-color: var(--err); }

/* pill choices */
.groups { display: grid; gap: 22px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.group-head h3 { font-size: 1.05rem; font-weight: 600; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; font-weight: 500; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; line-height: 1.25;
  transition: background .15s, border-color .15s, transform .1s;
}
.pill:hover span { border-color: var(--navy); }
.pill input:checked + span { background: var(--star); border-color: var(--navy); font-weight: 600; }
.pill input:checked + span::before { content: ""; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-2px, -1px); margin-right: 2px; }
.pill input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.pill input:active + span { transform: scale(.97); }

/* examples */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 34px 20px; text-align: center; cursor: pointer;
  border: 2px dashed #aab3cd; border-radius: 16px; background: var(--field);
  transition: border-color .15s, background .15s;
}
.drop b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem; }
.drop span { color: var(--muted); font-weight: 400; font-size: .92rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--navy); background: #fff7dd; }
.previews { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.previews li { position: relative; }
.previews img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.previews button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--navy); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.previews button:hover { background: var(--err); }
#examples-block.off { opacity: .35; pointer-events: none; }
.skip { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 500; cursor: pointer; }
.skip input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }

/* submit */
#turnstile { height: 0; overflow: hidden; margin: 0; } /* invisible widget */
.form-err { font-size: .95rem; }
#submit {
  display: block; width: 100%; margin-top: 26px; padding: 18px 24px; cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--navy); background: var(--star); border: 2px solid var(--navy); border-radius: 14px;
  box-shadow: 0 4px 0 var(--navy); transition: transform .08s, box-shadow .08s, background .15s;
}
#submit:hover { background: #ffd04f; }
#submit:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
#submit:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
#submit:disabled { opacity: .6; cursor: progress; transform: none; }

/* success */
#done { padding: 60px 0 40px; text-align: center; }
#done h2 { font-size: 2rem; }
#done p { color: var(--muted); max-width: 44ch; margin: 10px auto; }
.tick { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--star); border: 2px solid var(--navy); position: relative; }
.tick::after { content: ""; position: absolute; left: 22px; top: 11px; width: 12px; height: 24px; border: solid var(--navy); border-width: 0 4px 4px 0; transform: rotate(45deg); }
#again { margin-top: 20px; padding: 13px 22px; font: inherit; font-weight: 600; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 12px; cursor: pointer; }
#again:hover { background: var(--field); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* tablet / mobile */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 56px; }
  .panel { position: static; border-radius: 18px; }
  .panel-inner { padding: 24px 22px 20px; }
  .panel h1 { font-size: 1.9rem; }
  .lede { margin: 8px 0 16px; }
  .progress-label { margin-bottom: 0; }
  .checklist { display: none; }
  .sheet { padding: 4px 20px 28px; border-radius: 18px; }
}
@media (max-width: 560px) {
  .row.two { grid-template-columns: 1fr; }
  .row.two .field { margin-bottom: 18px; }
  .row.two .field:last-child { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
