:root {
  --s33-surface: #141b23;
  --s33-surface-hover: #1a242d;
  --s33-surface-border: #394651;
  --s33-copy-secondary: #c1ccd4;
  --s33-status-success: #81e6a8;
  --s33-status-success-bg: #142a20;
  --s33-status-pending: #ffb875;
  --s33-status-pending-bg: #322219;
  --s33-status-error: #ff9ba8;
  --s33-status-error-bg: #32151e;
}

/* Both entry cards use the same surface and emphasis. */
#home .rolechoice { --role-colour: var(--s33-teal); }
#home .rolechoice.brand-role { --role-colour: var(--s33-yellow); }

#home .ease-hero .rolechoice {
  border-color: color-mix(in srgb, var(--role-colour) 45%, var(--s33-surface));
  background: var(--s33-surface);
}
#home .ease-hero .rolechoice:is(:hover, :focus-visible, .selected) {
  border-color: var(--role-colour);
  background: var(--s33-surface-hover);
}
#home .ease-hero .rolechoice:focus-visible {
  outline: 2px solid var(--role-colour);
  outline-offset: 3px;
}
#home .ease-hero .rolechoice :is(.eyebrow, .roletitle) {
  color: var(--role-colour) !important;
}
#home .ease-hero :is(h1 span, .ease-intro > .eyebrow),
#home #ease-how > .eyebrow {
  color: var(--s33-text);
}
#home :is(.ease-intro > p, .rolechoice p, .ways-card p, .ease-three p, .ease-example-body > small, .ease-example-hint, .founder-home-notice p) {
  color: var(--s33-copy-secondary);
}
#home :is(.ease-example, .ways-card, .sh-home-faq, .founder-home-notice) {
  background: var(--s33-surface);
  border-color: var(--s33-surface-border);
}
#home #founderHomeNotice .primary {
  background: #e3edf1 !important;
  color: var(--s33-ink) !important;
  border-color: transparent;
  box-shadow: none;
}
#home #founderHomeNotice .primary:focus-visible {
  outline: 2px solid #e3edf1;
  outline-offset: 3px;
}

#home .opportunity-ways { --ways-accent: var(--s33-teal); }
#home .opportunity-ways[data-audience="brand"] { --ways-accent: var(--s33-yellow); }
#home .opportunity-ways .ways-card { border-color: var(--s33-surface-border); }
#home .opportunity-ways .ways-card:hover {
  border-color: var(--ways-accent);
  background: var(--s33-surface-hover);
}
#home .ease-example-people span:first-child,
#home #ease-how-heading .how-brand { color: var(--s33-yellow); }
#home .ease-example-people span:last-child,
#home #ease-how-heading .how-creator { color: var(--s33-teal); }

/* Shared work surfaces leave the role colour for icons and actions. */
#creatorDashboard #creatorTileGrid .ref-stat,
#creatorDashboard #creatorNextStepTile,
#brandDashboard .mp-tiles > button,
#brandDashboard .mp-next,
:is(#brandConversation, #creatorBrandConversation, .cp-page) .mp-card,
:is(#brandConversation, #creatorBrandConversation) .cp-chat-plan {
  background: var(--s33-surface) !important;
  border-color: var(--s33-surface-border) !important;
}
#creatorDashboard #creatorTileGrid .ref-stat:hover,
#brandDashboard .mp-tiles > button:hover {
  background: var(--s33-surface-hover) !important;
  border-color: var(--s33-action) !important;
}
#creatorDashboard #creatorTileGrid .ref-stat b {
  color: var(--s33-text) !important;
}
#brandDashboard .mp-dashboard-actions [data-page="brandProfile"] {
  background: var(--s33-surface) !important;
  border-color: var(--s33-surface-border) !important;
  color: var(--s33-text) !important;
}
#brandDashboard .mp-tiles > button:focus-visible,
.cp-page[data-mp-role] button:focus-visible {
  outline-color: var(--s33-action);
}

:is(#brandConversation, #creatorBrandConversation, .cp-page) .mp-card p,
.cp-agreement-summary dt,
.cp-agreement-summary .cp-chat-plan-dates small {
  color: var(--s33-copy-secondary);
}
.cp-page .cp-figures b { color: var(--s33-text); }

.mp-status {
  color: var(--s33-copy-secondary);
  border-color: var(--s33-surface-border);
}
.mp-status[data-status="completed"],
.partnership-status.is-completed,
.mp-completed-tag,
.cp-state:is([data-state="released"], [data-state="settled"]):not(.cp-red) {
  color: var(--s33-status-success) !important;
  background: var(--s33-status-success-bg);
  border-color: var(--s33-status-success);
}
.mp-status:is([data-status="offer"], [data-status="counter"], [data-status="submitted"], [data-status="changes_requested"]),
.cp-state:is([data-state="scheduled"], [data-state="awaiting_release"], [data-state="processing"], [data-state="refund_pending"], [data-state="settling"]):not(.cp-red),
.cp-warning[data-status="pending"] {
  color: var(--s33-status-pending) !important;
  background: var(--s33-status-pending-bg);
  border-color: var(--s33-status-pending);
}
.cp-state.cp-red,
.cp-state[data-state="disputed"] {
  color: var(--s33-status-error) !important;
  background: var(--s33-status-error-bg);
  border-color: var(--s33-status-error);
}

.nav .home-sign-in {
  display: none;
}
body:has(#home.active) .nav .home-sign-in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--s33-text);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.nav .home-sign-in:hover { text-decoration: underline; }
