:root {
    --bg: #FFFEFB;
    --bg-elevated: #FFFFFF;
    --bg-soft: #FAF7F0;

    --ink: #1A1F2E;
    --ink-muted: #525B6F;
    --ink-soft: #6E7686;
    --ink-faint: #9CA3AF;
    --border: #ECE6D6;
    --border-strong: #D9D1BC;

    --brand-red: #E63946;
    --brand-red-deep: #C1232F;
    --brand-red-tint: #FDECEE;
    --brand-blue: #3B82F6;
    --brand-blue-deep: #1E4FCB;
    --brand-blue-tint: #EBF3FF;
    --brand-green: #16A34A;
    --brand-green-deep: #0E7C39;
    --brand-green-tint: #E8F7EE;
    --brand-orange: #F59E0B;
    --brand-orange-deep: #C57708;
    --brand-orange-tint: #FFF4DC;
    --brand-purple: #7C3AED;

    --success: #16A34A;
    --error: #DC2626;
    --error-tint: #FEF2F2;
    --focus-glow: rgba(59, 130, 246, 0.22);

    --shadow-sm: 0 1px 2px rgba(26, 31, 46, 0.05);
    --shadow-md: 0 2px 6px rgba(26, 31, 46, 0.05), 0 8px 24px rgba(26, 31, 46, 0.07);
    --shadow-lg: 0 4px 12px rgba(26, 31, 46, 0.08), 0 24px 48px rgba(26, 31, 46, 0.10);
    --shadow-focus: 0 0 0 4px var(--focus-glow);

    --radius: 9px;
    --radius-lg: 14px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 640px;
    background:
      radial-gradient(ellipse 50% 50% at 10% 0%,  rgba(230, 57, 70, 0.08)  0%, transparent 55%),
      radial-gradient(ellipse 55% 45% at 35% 5%,  rgba(124, 58, 237, 0.06) 0%, transparent 55%),
      radial-gradient(ellipse 50% 50% at 60% 0%,  rgba(59, 130, 246, 0.08) 0%, transparent 55%),
      radial-gradient(ellipse 50% 45% at 85% 5%,  rgba(22, 163, 74, 0.07)  0%, transparent 55%),
      radial-gradient(ellipse 55% 45% at 100% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  .wrap {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px 120px;
  }

  /* ─── TOPBAR ─────────────────────────────────────── */
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
  }
  .brand-logo { height: 38px; width: auto; display: block; }
  .save-indicator {
    display: flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .save-indicator.show { opacity: 1; }
  .save-indicator .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
  }
  .save-indicator.saving .dot { background: var(--brand-orange); }

  /* ─── DRAFT BANNER ───────────────────────────────── */
  .draft-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--brand-blue-tint);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--brand-blue-deep);
    flex-wrap: wrap;
  }
  .draft-banner.show { display: flex; }
  .draft-banner-text { flex: 1; min-width: 160px; }
  .draft-banner-text strong { font-weight: 600; }
  .draft-banner-actions { display: flex; gap: 8px; }
  .draft-banner button {
    background: transparent;
    border: 1px solid currentColor;
    color: var(--brand-blue-deep);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
  }
  .draft-banner button:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
  .draft-banner button.secondary { color: var(--ink-muted); border-color: var(--border-strong); }
  .draft-banner button.secondary:hover { background: var(--bg-elevated); color: var(--ink); border-color: var(--ink-muted); }

  /* ─── HERO (Step 1 only) ────────────────────────── */
  .hero { margin-bottom: 40px; position: relative; }
  .hero-decoration {
    position: absolute;
    top: -8px; right: -12px;
    width: 90px; height: 90px;
    opacity: 0.85;
    pointer-events: none;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
  }
  .eyebrow .pulse {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-green);
  }
  .eyebrow .pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand-green);
    animation: pulse 1.6s ease-out 4;
    animation-fill-mode: forwards;
  }
  @keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0;    }
  }

  h1 {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(36px, 8vw, 50px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 16px;
    color: var(--ink);
    max-width: 540px;
  }
  h1 .rainbow {
    background: linear-gradient(95deg, var(--brand-red) 0%, var(--brand-purple) 22%, var(--brand-blue) 44%, var(--brand-green) 70%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: italic;
    font-weight: 800;
  }
  .lede {
    font-size: 16px;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 540px;
  }
  .lede a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 500;
  }
  .lede strong { color: var(--ink); font-weight: 700; }
  .lede em { font-style: italic; }

  .meta {
    display: flex; gap: 28px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
  .meta-item { display: flex; flex-direction: column; gap: 4px; }
  .meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  .meta-value { font-size: 13px; font-weight: 700; color: var(--ink); }
  .meta-value .accent-blue { color: var(--brand-blue); }

  /* ─── PROGRESS BAR ───────────────────────────────── */
  .progress {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 -20px 28px;
    padding: 14px 20px;
    background: rgba(255, 254, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .progress.show { display: block; }

  .progress-track {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
  }
  .progress-step {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.35s ease;
    position: relative;
  }
  .progress-step + .progress-step { margin-left: 6px; }
  .progress-step.done { background: var(--brand-green); }
  .progress-step.current {
    background: linear-gradient(to right, var(--brand-blue) 50%, var(--border) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    animation: fillProgress 0.6s ease forwards;
  }
  @keyframes fillProgress {
    to { background-position: 0% 0; }
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-soft);
  }
  .progress-label .step-name { font-weight: 600; color: var(--ink); }
  .progress-label .step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
  }

  /* ─── STEPS ──────────────────────────────────────── */
  .step {
    display: none;
    opacity: 0;
    animation: stepIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .step.active { display: block; }
  @keyframes stepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .step-head {
    margin-bottom: 24px;
  }
  .step-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 6px;
  }
  .step-title {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .step-intro {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 540px;
  }
  .step-intro a {
    color: var(--brand-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    font-weight: 500;
  }

  .step-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
  }
  .step-card.prime {
    background: linear-gradient(180deg, var(--brand-red-tint) 0%, var(--bg-elevated) 70%);
    border-color: rgba(230, 57, 70, 0.22);
  }

  /* ─── FIELDS ─────────────────────────────────────── */
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
  .field:last-child { margin-bottom: 0; }
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }
  .field-row .field { margin-bottom: 0; }

  label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
  }
  label .optional { color: var(--ink-faint); font-weight: 400; margin-left: 4px; }
  label .deal-breaker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--brand-red);
    background: var(--brand-red-tint);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: 1px;
  }
  label .role-tag-required {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--brand-green);
    background: var(--brand-green-tint);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: 1px;
  }
  .helper { font-size: 12px; color: var(--ink-faint); margin-top: 4px; line-height: 1.45; }
  .helper strong { color: var(--ink-muted); font-weight: 600; }
  .helper.warn { color: var(--brand-red-deep); }

  .error-msg {
    display: none;
    font-size: 12px;
    color: var(--brand-orange-deep);
    margin-top: 4px;
    line-height: 1.4;
    font-weight: 500;
  }
  .field.has-error .error-msg { display: block; }
  .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--brand-orange); }

  input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
  input[type="date"], select, textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: var(--shadow-sm);
    outline: none;
    min-height: 48px;
  }
  input::placeholder, textarea::placeholder { color: var(--ink-faint); }
  input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
  input:focus, select:focus, textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-focus);
  }
  input:not(:placeholder-shown):not(:focus) { background: #FDFBF6; }
  textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

  .select-wrap { position: relative; }
  select { appearance: none; cursor: pointer; padding-right: 38px; }
  .select-wrap::after {
    content: "";
    position: absolute;
    right: 14px; top: 50%;
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink-muted);
    border-bottom: 1.5px solid var(--ink-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }

  /* ─── PILL TOGGLE ─────────────────────────────────── */
  .pill-toggle {
    display: inline-flex;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    min-height: 48px;
  }
  .pill-toggle label {
    flex: 1;
    text-align: center;
    padding: 11px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: all 0.18s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pill-toggle input { position: absolute; opacity: 0; pointer-events: none; }
  .pill-toggle label:hover { color: var(--ink); }
  .pill-toggle label:has(input:checked) {
    background: #fff;
    color: var(--brand-blue);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
  }

  /* ─── INPUT WITH ICON PREFIX ──────────────────────── */
  .input-icon { position: relative; }
  .input-icon svg {
    position: absolute;
    left: 14px; top: 50%;
    width: 18px; height: 18px;
    transform: translateY(-50%);
    color: var(--ink-faint);
    pointer-events: none;
    transition: color 0.2s;
  }
  .input-icon input { padding-left: 42px; }
  .input-icon:focus-within svg.ig { color: #E1306C; }
  .input-icon:focus-within svg.fb { color: #1877F2; }
  .input-icon:focus-within svg.tt { color: var(--ink); }
  .input-icon input:not(:placeholder-shown) + svg,
  .input-icon input:not(:placeholder-shown) ~ svg { /* keep as backup */ }
  .input-icon input:not(:placeholder-shown):not(:focus) ~ svg.ig { color: #E1306C; opacity: 0.7; }
  .input-icon input:not(:placeholder-shown):not(:focus) ~ svg.fb { color: #1877F2; opacity: 0.7; }
  .input-icon input:not(:placeholder-shown):not(:focus) ~ svg.tt { color: var(--ink); opacity: 0.7; }

  /* ─── RADIO GROUP ─────────────────────────────────── */
  .radio-row { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
    min-height: 48px;
  }
  .radio-option:hover { border-color: var(--border-strong); }
  .radio-option input { position: absolute; opacity: 0; pointer-events: none; }
  .radio-option .ring {
    width: 18px; height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .radio-option:has(input:checked) {
    border-color: var(--brand-orange);
    background: var(--brand-orange-tint);
  }
  .radio-option:has(input:checked) .ring {
    border-color: var(--brand-orange);
    border-width: 5px;
  }
  .radio-option .radio-label { font-size: 14px; font-weight: 500; color: var(--ink); }

  /* ─── ROLE CARDS ──────────────────────────────────── */
  .role-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
  .role-card {
    position: relative;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 48px 1fr 22px;
    gap: 16px;
    align-items: center;
    min-height: 64px;
  }
  .role-card input { position: absolute; opacity: 0; pointer-events: none; }
  .role-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .role-card .role-icon {
    width: 48px; height: 48px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .role-card .role-icon svg { width: 26px; height: 26px; transition: transform 0.3s; }
  .role-card:hover .role-icon svg { transform: scale(1.1) rotate(-3deg); }
  .role-card .role-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .role-card .role-name {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.012em;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .role-card .role-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .role-card .role-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
  .role-card .check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .role-card.r-cs       .role-icon { background: var(--brand-blue-tint);   color: var(--brand-blue); }
  .role-card.r-rnd      .role-icon { background: var(--brand-green-tint);  color: var(--brand-green); }
  .role-card.r-marketer .role-icon { background: var(--brand-orange-tint); color: var(--brand-orange); }
  .role-card.r-rnd .role-tag { color: var(--brand-green); background: var(--brand-green-tint); }

  .role-card.r-cs:has(input:checked)       { border-color: var(--brand-blue);   background: var(--brand-blue-tint);   box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), var(--shadow-md); }
  .role-card.r-rnd:has(input:checked)      { border-color: var(--brand-green);  background: var(--brand-green-tint);  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15), var(--shadow-md); }
  .role-card.r-marketer:has(input:checked) { border-color: var(--brand-orange); background: var(--brand-orange-tint); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), var(--shadow-md); }
  .role-card.r-cs:has(input:checked)       .check { background: var(--brand-blue);   border-color: var(--brand-blue); }
  .role-card.r-rnd:has(input:checked)      .check { background: var(--brand-green);  border-color: var(--brand-green); }
  .role-card.r-marketer:has(input:checked) .check { background: var(--brand-orange); border-color: var(--brand-orange); }
  .role-card:has(input:checked) .check::after {
    content: "";
    width: 5px; height: 9px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
  }

  /* ─── CONDITIONAL FIELDS ─────────────────────────── */
  .conditional {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
  }
  .conditional.visible {
    max-height: 280px;
    opacity: 1;
    margin-top: 12px;
  }
  .conditional .field {
    margin-bottom: 0;
    border-left: 2px solid var(--brand-blue);
    padding-left: 14px;
  }

  /* ─── FILE UPLOAD ─────────────────────────────────── */
  .upload {
    position: relative;
    border: 1.5px dashed var(--border-strong);
    background: #FDFBF6;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .upload:hover { border-color: var(--brand-orange); background: var(--brand-orange-tint); }
  .upload input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .upload-icon {
    width: 40px; height: 40px;
    background: var(--brand-orange-tint);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    color: var(--brand-orange);
  }
  .upload-icon svg { width: 22px; height: 22px; }
  .upload-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
  .upload-title span { color: var(--brand-orange-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
  .upload-hint { font-size: 12px; color: var(--ink-faint); }
  .upload.has-file { border-style: solid; border-color: var(--brand-green); background: var(--brand-green-tint); }
  .upload.has-file .upload-icon { background: var(--brand-green); color: #fff; }
  .upload.has-file .upload-title { font-weight: 600; }

  /* ─── PRIME QUESTION (Step 4) ─────────────────────── */
  .prime-question label {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ink);
    display: block;
    margin-bottom: 10px;
  }
  .prime-question .prompt {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .prime-textarea {
    min-height: 200px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* ─── CONSENT ─────────────────────────────────────── */
  .consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 20px;
    transition: border-color 0.15s, background 0.15s;
  }
  .consent:hover { border-color: var(--border-strong); }
  .consent.checked { border-color: var(--brand-blue); background: var(--brand-blue-tint); }
  .consent.has-error { border-color: var(--brand-orange); background: rgba(245, 158, 11, 0.06); }
  .consent input[type="checkbox"] {
    appearance: none;
    width: 22px; height: 22px;
    min-height: 22px;
    border: 1.5px solid var(--border-strong);
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    padding: 0;
    box-shadow: none;
  }
  .consent input[type="checkbox"]:checked {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
  }
  .consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px; top: 3px;
    width: 6px; height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
  }
  .consent-label {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-muted);
  }
  .consent-label strong { color: var(--ink); font-weight: 600; }
  .consent-label a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
  }

  /* ─── HONEYPOT (hidden bot trap) ──────────────────── */
  .hpot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1;
  }

  /* ─── STEP NAV ────────────────────────────────────── */
  .step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
  }
  .step-nav.solo { justify-content: flex-end; }

  .btn-back {
    background: transparent;
    border: none;
    color: var(--ink-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
    min-height: 44px;
  }
  .btn-back:hover { color: var(--ink); }
  .btn-back .arrow { transition: transform 0.2s; font-size: 16px; }
  .btn-back:hover .arrow { transform: translateX(-3px); }

  .btn-next, .btn-submit {
    border: none;
    border-radius: var(--radius);
    padding: 13px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    position: relative;
    overflow: hidden;
  }
  .btn-next {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 1px 2px rgba(26, 31, 46, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .btn-next:hover {
    background: #2A3144;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 31, 46, 0.22);
  }
  .btn-next:active { transform: translateY(0); }
  .btn-next .arrow { transition: transform 0.2s; font-size: 16px; }
  .btn-next:hover .arrow { transform: translateX(3px); }

  .btn-submit {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 1px 2px rgba(230, 57, 70, 0.3), 0 4px 12px rgba(230, 57, 70, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  .btn-submit::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(95deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
  }
  .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4), 0 8px 24px rgba(245, 158, 11, 0.15);
  }
  .btn-submit:hover::before { opacity: 1; }
  .btn-submit:active { transform: translateY(0); }
  .btn-submit > * { position: relative; z-index: 1; }
  .btn-submit .arrow { transition: transform 0.2s; font-size: 16px; }
  .btn-submit:hover .arrow { transform: translateX(3px); }
  .btn-submit:disabled, .btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
  }
  .btn-submit.loading { pointer-events: none; }
  .btn-submit.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-red);
    z-index: 2;
    opacity: 0;
    animation: loadingFade 1.4s ease-in-out infinite;
  }
  @keyframes loadingFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
  }

  /* ─── SUCCESS OVERLAY ─────────────────────────────── */
  .success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .success-overlay.show {
    display: flex;
    opacity: 1;
  }
  .success-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .success-overlay.show .success-card { transform: scale(1); }
  .success-icon {
    width: 72px; height: 72px;
    background: var(--brand-green);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 0 0 8px var(--brand-green-tint);
  }
  .success-icon svg { width: 36px; height: 36px; }
  .success-card h2 {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .success-card p {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 8px;
  }
  .success-card .small {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 16px;
  }

  /* ─── RESUBMIT MODAL ──────────────────────────────── */
  .resubmit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 110;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .resubmit-overlay.show {
    display: flex;
    opacity: 1;
  }
  .resubmit-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 32px 28px 26px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .resubmit-overlay.show .resubmit-card { transform: scale(1); }
  .resubmit-card h2 {
    font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.25;
  }
  .resubmit-prev {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-left: 3px solid var(--brand-orange);
  }
  .resubmit-prev strong { color: var(--ink); font-weight: 600; }
  .resubmit-card .field { margin-bottom: 18px; }
  .resubmit-card textarea {
    min-height: 90px;
    resize: vertical;
  }
  .resubmit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
  }
  .resubmit-actions .btn-back,
  .resubmit-actions .btn-next { padding: 12px 18px; font-size: 15px; }
  @media (max-width: 480px) {
    .resubmit-card { padding: 26px 20px 22px; }
    .resubmit-card h2 { font-size: 19px; }
    .resubmit-actions { flex-direction: column-reverse; gap: 8px; }
    .resubmit-actions .btn-back,
    .resubmit-actions .btn-next { width: 100%; justify-content: center; }
  }

  /* ─── FOOTER ──────────────────────────────────────── */
  footer {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--ink-faint);
    flex-wrap: wrap;
    gap: 12px;
  }
  footer .colophon em { font-style: italic; }
  footer a {
    color: var(--ink-muted);
    text-decoration: none;
    margin-left: 18px;
    transition: color 0.15s;
  }
  footer a:hover { color: var(--ink); }
  footer a.wa:hover { color: var(--brand-green); }

  /* ─── MOBILE OPTIMIZATIONS ────────────────────────── */
  @media (max-width: 560px) {
    .wrap { padding: 16px 16px 100px; }
    .topbar { margin-bottom: 28px; }
    .brand-logo { height: 32px; }
    .hero { margin-bottom: 32px; }
    .hero-decoration { width: 64px; height: 64px; top: -4px; right: -8px; }
    h1 { font-size: 30px; }
    .lede { font-size: 15px; }
    .meta { flex-wrap: wrap; gap: 16px; }
    .step-card { padding: 22px 18px; }
    .step-title { font-size: 22px; }
    .step-intro { font-size: 14px; }
    .field-row { grid-template-columns: 1fr; gap: 14px; }
    .role-card { padding: 16px; gap: 14px; grid-template-columns: 40px 1fr 20px; }
    .role-card .role-icon { width: 40px; height: 40px; }
    .role-card .role-icon svg { width: 22px; height: 22px; }
    .prime-question label { font-size: 18px; }
    .step-nav { flex-direction: row-reverse; }
    .step-nav.solo { flex-direction: row; }
    .btn-next, .btn-submit { flex: 1; justify-content: center; }
    .btn-back { padding: 12px 4px; }
    footer { flex-direction: column; align-items: flex-start; }
    footer > div:last-child a:first-child { margin-left: 0; }
    .progress { margin: 0 -16px 22px; padding: 12px 16px; }
    .success-card { padding: 32px 24px 28px; }
    .success-icon { width: 64px; height: 64px; }
    .success-card h2 { font-size: 21px; }
  }

  @media (min-width: 561px) {
    body { font-size: 15px; }
    input, select, textarea { font-size: 14px; }
  }