/* NAHUI 2026 — registration platform
   Mobile first. Everything above 640px is a progressive enhancement. */

:root {
  --orange: #f15a24;
  --orange-dark: #d14a18;
  --orange-tint: #fcded3;
  --page: #e6e6e6;
  --card: #ffffff;
  --field: #f4f4f4;
  --field-hover: #ededed;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --ink-faint: #8e8e8e;
  --line: #dcdcdc;
  --grey-btn: #b4b4b4;
  --danger: #c2341a;

  --radius-card: 22px;
  --radius-field: 12px;
  --radius-pill: 999px;

  --shell-pad: 20px;
  --gap: 14px;

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--orange); }

/* ---------- shell ---------- */

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.sheet {
  background: var(--card);
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px var(--shell-pad) 0;
  width: 100%;
}

.sheet__body { flex: 1; padding-bottom: 28px; display: flex; flex-direction: column; }

@media (min-width: 640px) {
  :root { --shell-pad: 40px; }
  .shell { padding: 40px 24px; align-items: center; justify-content: flex-start; }
  .sheet {
    max-width: 560px;
    border-radius: var(--radius-card);
    flex: 0 1 auto;
    min-height: min(760px, calc(100dvh - 80px));
    padding-top: 34px;
    box-shadow: 0 2px 28px rgba(0, 0, 0, 0.06);
  }
}

/* ---------- top bar: language row, then the step nav ---------- */

.topbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

/* language: small, quiet, above the pills so they get the full width */
.langbar {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.langbar__item {
  background: none;
  border: 0;
  padding: 2px 1px;
  color: var(--ink-faint);
  font-weight: 400;
  cursor: pointer;
  text-transform: lowercase;
}
.langbar__item:hover { color: var(--ink-soft); }
.langbar__item[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.langbar__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.langbar__sep { color: var(--line); }

/* step nav: back arrow + pills. Only the current pill carries its name, so the
   row fits any step names at any width and never truncates or scrolls. */
.stepnav { display: flex; align-items: center; gap: 7px; }

.navback {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s, color .15s;
}
.navback:hover { background: var(--ink); color: var(--card); }
.navback:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  min-width: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip__num { font-variant-numeric: tabular-nums; }
.chip__label { text-transform: uppercase; }

/* already completed — clickable, goes back */
.chip--done { border-color: var(--ink-faint); color: var(--ink-soft); }
.chip--done:hover { border-color: var(--ink); color: var(--ink); }

/* where they are now */
.chip--current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* unlocked because the current step is complete */
.chip--next { border-color: var(--ink-faint); color: var(--ink-soft); }
.chip--next:hover { border-color: var(--orange); color: var(--orange); }

/* not reachable yet */
.chip--locked { border-color: var(--line); color: #c4c4c4; }

.chip:disabled { cursor: default; }
.chip--locked:disabled:hover { border-color: var(--line); color: #c4c4c4; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin: 0 0 2px;
}

h1, h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.lede {
  font-size: 17px;
  line-height: 1.38;
  margin: 0 0 12px;
  color: var(--ink);
}

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

.note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- landing ---------- */

.landing { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 28px; }
.landing h1 { white-space: pre-line; margin-bottom: 18px; }
.landing .lede + .lede { margin-top: 18px; }
.landing__cta { margin-top: 34px; display: flex; justify-content: flex-end; }

/* ---------- form fields ---------- */

.field { margin-bottom: 20px; }

.label {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.label .req { color: var(--ink); }

.input, .select {
  width: 100%;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius-field);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  transition: background .15s, border-color .15s;
}
.input::placeholder { color: var(--ink-faint); }
.input:hover, .select:hover { background: var(--field-hover); }
.input:focus-visible, .select:focus-visible {
  outline: none;
  border-color: var(--ink);
  background: var(--card);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235c5c5c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.help { font-size: 14px; color: var(--ink-faint); margin-top: 7px; line-height: 1.35; }

.error {
  display: block;
  font-size: 14px;
  color: var(--danger);
  margin-top: 7px;
}
.field--invalid .input,
.field--invalid .select,
.field--invalid .upload { border-color: var(--danger); }

.banner {
  border-radius: var(--radius-field);
  padding: 12px 14px;
  font-size: 14.5px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.banner--error { background: #fbe6e1; color: var(--danger); }
.banner--info { background: var(--field); color: var(--ink-soft); }

/* checkbox */

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.35;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin-top: 1px;
  border: 1.6px solid var(--ink);
  border-radius: 4px;
  background: var(--card);
  display: grid;
  place-items: center;
}
.check input:checked + .check__box { background: var(--ink); }
.check__box svg { opacity: 0; width: 11px; height: 11px; }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--orange); outline-offset: 2px; }

/* interest chips */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips__item {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 17px;
  font-size: 15.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: left;
}
.chips__item:hover { border-color: var(--ink-faint); }
.chips__item[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.chips__item[disabled] { opacity: .45; cursor: not-allowed; }
.chips__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* upload */

.upload {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  background: var(--field);
  border: 1px solid transparent;
  border-radius: var(--radius-field);
  padding: 15px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.upload:hover { background: var(--field-hover); }
.upload:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.upload--dragging { background: var(--orange-tint); border-color: var(--orange); }
.upload__icon { flex: 0 0 auto; color: var(--ink-faint); display: grid; place-items: center; }
.upload__text { min-width: 0; }
.upload__cta { display: block; color: var(--ink-soft); font-size: 16px; }
.upload__sub { display: block; color: var(--ink-faint); font-size: 14.5px; }
.upload--filled { background: var(--orange-tint); }
.upload--filled .upload__cta { color: var(--ink); }
.upload--filled .upload__icon { color: var(--orange); }
.upload__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload__clear {
  margin-left: auto;
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* ---------- option cards (accreditation / lab tables) ---------- */

.cards { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }

.optcard {
  position: relative;
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: var(--radius-card);
  padding: 24px 22px 20px;
  transition: background .15s, border-color .15s;
}
.optcard--selected { background: var(--orange-tint); border-color: var(--orange); }
.optcard__badge {
  position: absolute;
  top: -14px; left: 14px;
  background: var(--orange);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.optcard__name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 6px; }
.optcard__price { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.optcard__cur { font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }
.optcard__summary { font-size: 16px; line-height: 1.38; margin: 0 0 12px; }
.optcard__summary:last-of-type { margin-bottom: 16px; }

.feats { list-style: none; margin: 0 0 18px; padding: 0; }
.feats li {
  position: relative;
  padding-left: 13px;
  font-size: 15.5px;
  line-height: 1.32;
  margin-bottom: 7px;
  color: var(--ink);
}
.feats li::before { content: "·"; position: absolute; left: 2px; }

.addons { margin: 4px 0 18px; }
.addon {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, .07);
}
.addon:last-child { border-bottom: 1px solid rgba(0, 0, 0, .07); }
.addon input { position: absolute; opacity: 0; width: 0; height: 0; }
.addon__dot {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.6px solid var(--ink-soft);
  align-self: center;
}
.addon input:checked + .addon__dot { border-color: var(--orange); border-width: 5px; }
.addon input:focus-visible + .addon__dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.addon__name { font-size: 16px; }
.addon__price { margin-left: auto; font-size: 17px; font-weight: 500; white-space: nowrap; }

.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 17px;
  user-select: none;
}
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick__dot {
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1.6px solid var(--ink-soft);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pick input:checked + .pick__dot { background: var(--orange); border-color: var(--orange); }
.pick__dot svg { opacity: 0; width: 11px; height: 11px; }
.pick input:checked + .pick__dot svg { opacity: 1; }
.pick input:focus-visible + .pick__dot { outline: 2px solid var(--ink); outline-offset: 2px; }

.optcard__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.optcard__foot .pick { flex: 1; }

/* disclosure body */
.disclosure { margin-top: 16px; }
.disclosure[hidden] { display: none; }
.mesa { margin-bottom: 15px; }
.mesa__name { font-size: 14px; font-weight: 500; margin: 0; }
.mesa__title { font-size: 14px; font-weight: 500; margin: 0 0 3px; line-height: 1.35; }
.mesa__body { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.4; }

/* ---------- buttons ---------- */

.btn {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  min-height: 48px;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: var(--grey-btn); color: #fff; }
.btn--ghost:hover { background: #a3a3a3; }
.btn--quiet { background: var(--field); color: var(--ink-faint); }
.btn--quiet:hover { background: var(--field-hover); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: rgba(0,0,0,.04); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--block { display: block; width: 100%; }

.actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 30px;
  padding-bottom: 10px;
}
.actions--end { align-items: stretch; }
.actions .btn { width: 100%; }

@media (min-width: 640px) {
  .actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .actions .btn { width: auto; }
  .actions--end { justify-content: flex-end; }
}

/* ---------- summary / confirmation ---------- */

.summary {
  background: var(--field);
  border-radius: var(--radius-field);
  padding: 16px 18px;
  margin: 22px 0;
}
.summary__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.summary__row { display: flex; justify-content: space-between; gap: 14px; font-size: 16px; padding: 4px 0; }
.summary__row dt { color: var(--ink-soft); margin: 0; }
.summary__row dd { margin: 0; text-align: right; font-weight: 500; }
.summary__total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }

.done { padding-top: 6px; }
.folio {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  background: var(--field);
  border-radius: var(--radius-field);
  padding: 12px 16px;
  display: inline-block;
  margin-top: 6px;
}

.demo-banner {
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 7px 12px;
}

strong { font-weight: 500; }

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

/* ---------- save-and-resume link ---------- */

.savebar {
  background: var(--field);
  border-radius: var(--radius-field);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.savebar--final { margin: 26px 0 0; }

.savebar__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.savebar__status { color: var(--ink-faint); text-transform: none; letter-spacing: 0; }
.savebar__body { font-size: 15.5px; margin: 0 0 10px; line-height: 1.35; }

.savebar__row { display: flex; gap: 8px; align-items: stretch; }

.savebar__url {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-overflow: ellipsis;
}
.savebar__url:focus-visible { outline: none; border-color: var(--ink); color: var(--ink); }

.savebar__copy {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  padding: 0 16px;
  font-size: 14.5px;
  cursor: pointer;
  min-width: 84px;
}
.savebar__copy:hover { background: #000; }
.savebar__copy:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.savebar__warn {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-faint);
  margin: 9px 0 0;
}
.savebar__warn--bad { color: var(--danger); }
