/* ═══════════════════════════════════════════════════
   nuce — contributor sign-up
   Tokens mirror index.html exactly so the two pages match.
   ═══════════════════════════════════════════════════ */
:root {
  --coral:        #F07B6E;
  --coral-deep:   #D9564A;
  --coral-tint:   #FBEAE7;
  --coral-glow:   rgba(240,123,110,0.30);

  --ink:          #0F0E0D;
  --ink-2:        #171614;

  --paper:        #FBFAF8;
  --card:         #FFFFFF;

  --muted:        #6C6763;
  --muted-dark:   #8B837C;
  --faint:        #A8A29C;

  --line:         rgba(15,14,13,0.10);
  --line-dark:    rgba(255,255,255,0.09);

  --ease:         cubic-bezier(.16,1,.3,1);

  --t-journalist: #C0362C;
  --t-expert:     #2563C9;
  --t-official:   #16A34A;
  --t-creator:    #9333EA;

  --ok:           #16A34A;
  --err:          #C0362C;

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(15,14,13,.04), 0 4px 14px rgba(15,14,13,.04);
  --shadow-md: 0 2px 4px rgba(15,14,13,.03), 0 14px 40px rgba(15,14,13,.07);

  --maxw: 860px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── type ─── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
}
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.045em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; letter-spacing: -0.03em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--coral-deep);
}
.lede { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ═══ NAV ═══ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: rgba(251,250,248,.82);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.nav-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.045em; }
.nav-back { font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-back:hover { color: var(--ink); }

/* ═══ BUTTONS ═══ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -0.018em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: none; border-radius: 100px;
  padding: 14px 28px; cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,14,13,.20); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-coral { --btn-bg: var(--coral-deep); --btn-fg: #fff; }
.btn-coral:hover { box-shadow: 0 14px 34px rgba(217,86,74,.35); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { --btn-fg: var(--ink); box-shadow: none; transform: none; background: rgba(15,14,13,.035); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ═══ HERO ═══ */
.hero { padding: clamp(48px, 8vw, 86px) 0 clamp(36px, 5vw, 54px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(240,123,110,.13), transparent 66%);
}
.hero > * { position: relative; }
.hero h1 { margin: 16px 0 18px; max-width: 16ch; }
.hero .lede { max-width: 54ch; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 9px;
  background: rgba(240,123,110,.09);
  border: 1px solid rgba(240,123,110,.22);
  border-radius: 100px;
  font-size: 12.5px; font-weight: 500; color: var(--coral-deep);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-deep); animation: blink 2.2s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.35; transform:scale(.72);} }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.hero-note { font-size: 13px; color: var(--faint); }

/* ─── the three Vs ─── */
.vees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.vee {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.vee h3 { margin-bottom: 7px; }
.vee p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.context {
  margin-top: 30px; font-size: 14.5px; line-height: 1.7;
  color: var(--muted); max-width: 62ch;
}
.context a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ═══ FORM SHELL ═══ */
.apply { padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 9vw, 110px); }

.progress-head { margin-bottom: 26px; }
.progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}
.progress-track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--coral), var(--coral-deep));
  border-radius: 3px;
  transition: width .5s var(--ease);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 38px);
}

.step[hidden] { display: none; }
.step-title { margin-bottom: 6px; }
.step-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; line-height: 1.6; }

/* ═══ FIELDS ═══ */
.field { margin-bottom: 20px; }
.field > label, .field-label {
  display: block;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.field .hint { display: block; font-size: 12.5px; color: var(--faint); font-weight: 400; margin-top: 3px; }

.input, textarea.input, select.input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240,123,110,.14); background: var(--card); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.55; }

.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(192,54,44,.10); }
.error { display: none; font-size: 12.5px; color: var(--err); margin-top: 6px; font-weight: 500; }
.error.show { display: block; }

.counter { font-size: 12px; color: var(--faint); text-align: right; margin-top: 5px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--err); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ═══ CHOICE CARDS ═══ */
.choices { display: grid; gap: 12px; }
.choices.cols2 { grid-template-columns: 1fr 1fr; }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .35s var(--ease), box-shadow .3s;
  height: 100%;
}
.choice-box:hover { border-color: rgba(240,123,110,.4); background: var(--card); }
.choice input:checked + .choice-box {
  border-color: var(--coral-deep);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(240,123,110,.14), var(--shadow-sm);
}
.choice input:focus-visible + .choice-box { outline: 2px solid var(--coral-deep); outline-offset: 2px; }
.choice-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.028em; display: flex; align-items: center; gap: 8px; }
.choice-text { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }

/* tier badges */
.badge { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.t-j { color: var(--t-journalist); }
.t-e { color: var(--t-expert); }
.t-o { color: var(--t-official); }
.t-c { color: var(--t-creator); }
.badge-lg { width: 30px; height: 30px; margin-top: 2px; }

/* ═══ MULTI-SELECT PILLS ═══ */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick span {
  display: inline-block;
  padding: 9px 15px;
  font-size: 13.5px; font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
}
.pick span:hover { border-color: rgba(240,123,110,.45); }
.pick input:checked + span { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--coral-deep); outline-offset: 2px; }

/* ═══ INSTITUTION PICKER ═══ */
.picker { position: relative; }
.picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  max-height: 260px; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: 5px;
}
.picker-list[hidden] { display: none; }
.picker-opt {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px;
  font-family: var(--font-body); font-size: 14.5px;
  background: none; border: 0; border-radius: 8px; cursor: pointer; color: var(--ink);
}
.picker-opt:hover, .picker-opt[aria-selected="true"] { background: var(--coral-tint); }
.picker-opt .kind { font-size: 11.5px; color: var(--faint); display: block; }
.picker-opt.other { color: var(--coral-deep); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.picked {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  background: var(--coral-tint);
  border: 1px solid rgba(240,123,110,.3);
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
}
.picked button {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-size: 13px; color: var(--coral-deep); font-weight: 600; font-family: var(--font-body);
  text-decoration: underline;
}

/* ═══ LINK LIST ═══ */
.linklist { display: grid; gap: 9px; }
.linkrow { display: flex; gap: 9px; }
.linkrow .input { flex: 1; }
.linkrow button {
  flex-shrink: 0; width: 42px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; color: var(--faint); font-size: 18px; line-height: 1;
}
.linkrow button:hover { color: var(--err); border-color: rgba(192,54,44,.35); }
.addlink {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--coral-deep); text-align: left;
}

/* ═══ CHECKBOXES ═══ */
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; cursor: pointer; }
.check input {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--coral-deep); cursor: pointer;
}
.check span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.check a { color: var(--coral-deep); }

/* ═══ PREVIEW CARD ═══ */
.preview-wrap {
  margin-top: 8px; padding: 22px;
  background: var(--ink);
  border-radius: var(--r-md);
}
.preview-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark);
  margin-bottom: 14px;
}
.pv {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border-radius: var(--r-sm); padding: 16px;
}
.pv-av {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  overflow: hidden;
}
.pv-av img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; gap: 7px; }
.pv-role { font-size: 13px; font-weight: 600; margin-top: 2px; }
.pv-bio { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 7px; }

/* ═══ CALLOUT ═══ */
.callout {
  padding: 16px 18px;
  background: var(--coral-tint);
  border: 1px solid rgba(240,123,110,.25);
  border-radius: var(--r-sm);
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.callout a { color: var(--coral-deep); font-weight: 600; }
.callout strong { font-weight: 600; }
.callout p { margin: 0; }

/* worked examples under the brief */
.eg { display: grid; gap: 8px; margin-top: 14px; }
.eg-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; }
.eg-row > span:last-child { color: var(--muted); }
.eg-tag {
  flex-shrink: 0; margin-top: 2px;
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}
.eg-yes { background: rgba(22,163,74,.13); color: var(--ok); }
.eg-no  { background: rgba(192,54,44,.11); color: var(--err); }

/* ═══ NAVIGATION ═══ */
.step-nav {
  display: flex; gap: 12px; align-items: center;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
}
.step-nav .spacer { margin-left: auto; }

/* ═══ CONFIRMATION ═══ */
.done { text-align: center; padding: clamp(28px, 5vw, 48px) 0; }
.done-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(140deg, #22C55E, var(--ok));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 10px 26px rgba(22,163,74,.30);
}
.done-icon svg { width: 28px; height: 28px; }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--muted); max-width: 48ch; margin: 0 auto 10px; line-height: 1.65; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ink); color: var(--muted-dark);
  padding: 30px 0; margin-top: auto;
  border-top: 1px solid var(--line-dark);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; font-size: 13px; }
.footer a { color: var(--muted-dark); text-decoration: none; }
.footer a:hover { color: var(--coral); }
.footer .nav-name { color: #fff; font-size: 17px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 720px) {
  .vees { grid-template-columns: 1fr; }
  .choices.cols2 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .nav { padding: 12px 18px; }
  .shell { padding-inline: 18px; }
  .card { border-radius: var(--r-md); }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
