/* BBAI PRO role experiences v20.0 */

.role-hub,
.role-tool-section,
.role-context-section,
.role-universal {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0;
  border-top: 1px solid var(--ui-line-soft, rgba(255, 255, 255, 0.09));
}

.role-hub {
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 92% 8%, rgba(201, 166, 83, 0.11), transparent 68%),
    linear-gradient(180deg, #061a13, #082119);
}

.role-hub::after {
  position: absolute;
  top: -52%;
  right: -12%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(234, 217, 168, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(234, 217, 168, 0.018),
    0 0 0 140px rgba(234, 217, 168, 0.01);
  content: "";
  pointer-events: none;
}

.role-hub-head,
.role-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.role-hub-head > div,
.role-section-head > div {
  min-width: 0;
}

.role-hub-head h2,
.role-section-head h2 {
  margin: 8px 0 0;
}

.role-hub-head p,
.role-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--ui-muted, #aabfb4);
  font-size: 13px;
  line-height: 1.8;
}

.role-entry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-entry-card {
  position: relative;
  display: flex;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ui-paper, #f7f2e7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(201, 166, 83, 0.09), transparent 68%),
    rgba(255, 255, 255, 0.035);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.role-entry-card:nth-child(1),
.role-entry-card:nth-child(5) {
  grid-column: span 2;
}

.role-entry-card.role-entry-wide {
  grid-column: span 2;
}

.role-entry-card:hover {
  border-color: rgba(234, 217, 168, 0.32);
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(201, 166, 83, 0.15), transparent 68%),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-4px);
}

.role-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.role-entry-no {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #10251d;
  border-radius: 50%;
  background: var(--ui-gold-300, #ead9a8);
  font: 800 10px/1 "Bahnschrift", "DIN Alternate", sans-serif;
}

.role-entry-tag {
  color: #88a095;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.role-entry-card h3 {
  margin: 20px 0 7px;
  font-size: 23px !important;
}

.role-entry-card p {
  margin: 0;
  color: #a7bbb0;
  font-size: 13px;
  line-height: 1.72;
}

.role-entry-go {
  display: inline-flex;
  min-height: 38px;
  margin-top: 20px;
  align-items: center;
  gap: 8px;
  color: var(--ui-gold-300, #ead9a8);
  font-size: 11px;
  font-weight: 800;
}

.role-entry-go::after {
  content: "→";
  transition: transform 180ms ease;
}

.role-entry-card:hover .role-entry-go::after {
  transform: translateX(4px);
}

.role-bottom-nav {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 20px;
  padding: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid rgba(234, 217, 168, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(234, 217, 168, 0.035), transparent 42%),
    rgba(5, 22, 16, 0.92);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.role-bottom-nav a {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  align-content: center;
  gap: 4px;
  color: #dce8e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.role-bottom-nav a:hover,
.role-bottom-nav a:focus-visible {
  color: var(--ui-gold-300, #ead9a8);
  border-color: rgba(234, 217, 168, 0.28);
  background: rgba(234, 217, 168, 0.075);
  transform: translateY(-2px);
}

.role-bottom-nav b {
  color: var(--ui-gold-300, #ead9a8);
  font: 800 8px/1 "Bahnschrift", "DIN Alternate", sans-serif;
  letter-spacing: 0.1em;
}

.role-bottom-nav strong {
  color: #fff8e9;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

.role-bottom-nav span {
  min-width: 0;
  color: #a8bbb0;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
}

/* Role pages */
.role-page-shell {
  overflow: clip;
}

.role-axis-hero {
  position: relative;
  padding: clamp(54px, 7vw, 88px) 0 clamp(44px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(680px 420px at 88% 6%, rgba(201, 166, 83, 0.16), transparent 64%),
    linear-gradient(128deg, #071b15, #123a2d 68%, #20513d);
}

.role-axis-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 94%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 94%);
  content: "";
}

.role-axis-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.role-axis-copy h1 {
  max-width: 780px;
  margin: 16px 0 20px;
  white-space: pre-line;
}

.role-axis-copy > p {
  max-width: 680px;
  margin: 0;
  color: #c4d4cb;
  font-size: 15.5px;
  line-height: 1.9;
}

.role-points {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px;
}

.role-points span {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  align-items: center;
  color: #d1e0d8;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
}

.role-axis-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.role-axis-actions :is(a, button) {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.role-axis-actions .role-primary {
  color: #0b2b22;
  background: linear-gradient(135deg, #f3e3b1, #d4ad50);
}

.role-axis-actions .role-secondary {
  color: #dce7e0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.role-signal-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(201, 166, 83, 0.12), transparent 70%),
    rgba(7, 27, 21, 0.72);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.role-signal-card small {
  display: block;
  color: var(--ui-gold-300, #ead9a8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.role-signal-card strong {
  display: block;
  margin-top: 15px;
  color: #fffaf0;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.role-signal-card h2 {
  margin: 12px 0 8px;
  font-size: 22px !important;
}

.role-signal-card p {
  margin: 0;
  color: #9fb4a8;
  font-size: 12px;
  line-height: 1.72;
}

.role-signal-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.role-signal-lines span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  color: #acbeb4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
}

.role-signal-lines em {
  color: var(--ui-gold-300, #ead9a8);
  font-style: normal;
}

.role-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: 20px;
}

.role-tool-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(234, 217, 168, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(440px 260px at 100% 0%, rgba(201, 166, 83, 0.1), transparent 70%),
    linear-gradient(145deg, rgba(18, 58, 45, 0.82), rgba(7, 27, 21, 0.96));
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26);
}

.role-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.role-tool-head h3 {
  margin: 5px 0 0;
  font-size: clamp(25px, 3vw, 34px) !important;
}

.role-tool-head span {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #b9ff9a;
  border: 1px solid rgba(167, 255, 119, 0.18);
  border-radius: 999px;
  background: rgba(167, 255, 119, 0.055);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.role-tool-intro {
  margin: 10px 0 22px;
  color: #9fb4a8;
  font-size: 12.5px;
  line-height: 1.75;
}

.role-form {
  display: grid;
  gap: 13px;
}

.role-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-field {
  display: grid;
  gap: 7px;
  color: #d6e2da;
  font-size: 11.5px;
  font-weight: 700;
}

.role-field input,
.role-field select,
.role-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #f7f2e7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  font-size: 13px;
}

.role-field select {
  color-scheme: dark;
}

.role-field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.7;
}

.role-field input:focus,
.role-field select:focus,
.role-field textarea:focus {
  border-color: rgba(234, 217, 168, 0.48);
  box-shadow: 0 0 0 3px rgba(201, 166, 83, 0.1);
}

.role-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.role-choice-grid label {
  display: flex;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  color: #b9cbc1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
}

.role-choice-grid input {
  accent-color: var(--ui-gold-500, #c9a653);
}

.role-submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  align-items: center;
  justify-content: center;
  color: #0b2b22;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3e3b1, #d4ad50);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 850;
}

.role-error {
  min-height: 17px;
  margin: 0;
  color: #ff9a86;
  font-size: 10.5px;
}

.role-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(167, 255, 119, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(167, 255, 119, 0.08), transparent 72%),
    rgba(167, 255, 119, 0.045);
}

.role-result[hidden] {
  display: none;
}

.role-result-kicker {
  color: #a7ff77;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.role-result h4 {
  margin: 8px 0;
  color: #fff9e9;
  font-size: 19px !important;
}

.role-result p {
  margin: 7px 0 0;
  color: #b2c4ba;
  font-size: 12px;
  line-height: 1.72;
}

.role-result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.role-result-metrics div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.role-result-metrics b {
  display: block;
  color: #f2dc9d;
  font-size: 18px;
  line-height: 1.1;
}

.role-result-metrics span {
  display: block;
  margin-top: 5px;
  color: #87a094;
  font-size: 8.5px;
}

.role-result a {
  display: inline-flex;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 15px;
  align-items: center;
  color: #0b2b22;
  border-radius: 999px;
  background: var(--ui-gold-300, #ead9a8);
  font-size: 10.5px;
  font-weight: 850;
}

.role-side-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.role-side-card h3 {
  margin: 0 0 10px;
  font-size: 20px !important;
}

.role-side-card p {
  margin: 0;
  color: #9fb3a8;
  font-size: 11.5px;
  line-height: 1.72;
}

.role-step-list {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: role-step;
}

.role-step-list li {
  position: relative;
  display: grid;
  min-height: 42px;
  padding: 8px 10px 8px 42px;
  align-content: center;
  color: #bfcec6;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 10.5px;
  line-height: 1.55;
  counter-increment: role-step;
}

.role-step-list li::before {
  position: absolute;
  top: 50%;
  left: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #0b2b22;
  border-radius: 50%;
  background: var(--ui-gold-300, #ead9a8);
  font: 800 8px/1 "Bahnschrift", sans-serif;
  content: counter(role-step, decimal-leading-zero);
  transform: translateY(-50%);
}

.role-wish-wall {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.role-wish-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.role-wish-item b {
  display: block;
  color: #f5efda;
  font-size: 11px;
  font-weight: 750;
}

.role-wish-item span {
  display: block;
  margin-top: 4px;
  color: #9eb2a7;
  font-size: 10px;
  line-height: 1.6;
}

.role-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.role-flow-card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
}

.role-flow-card b {
  color: var(--ui-gold-300, #ead9a8);
  font: 800 9px/1 "Bahnschrift", sans-serif;
  letter-spacing: 0.1em;
}

.role-flow-card h3 {
  margin: 19px 0 7px;
  font-size: 20px !important;
}

.role-flow-card p {
  margin: 0;
  color: #9eb2a7;
  font-size: 11.5px;
  line-height: 1.7;
}

.role-universal {
  background:
    radial-gradient(580px 400px at 12% 20%, rgba(85, 137, 107, 0.15), transparent 64%),
    #06150f;
}

.role-universal-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: start;
  gap: 28px;
}

.role-universal-copy h2 {
  margin: 9px 0 15px;
}

.role-universal-copy p {
  max-width: 610px;
  margin: 0;
  color: #a7bbb0;
  font-size: 13px;
  line-height: 1.82;
}

.role-universal-form {
  display: grid;
  padding: 22px;
  gap: 10px;
  border: 1px solid rgba(234, 217, 168, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.role-universal-form :is(select, textarea) {
  width: 100%;
  color: #f7f2e7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.role-universal-form select {
  min-height: 46px;
  padding: 0 12px;
  color-scheme: dark;
  font-size: 12px;
}

.role-universal-form textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.7;
}

.role-universal-form button {
  min-height: 45px;
  color: #0b2b22;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3e3b1, #d4ad50);
  font-size: 12px;
  font-weight: 850;
}

.role-universal-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(167, 255, 119, 0.18);
  border-radius: 13px;
  background: rgba(167, 255, 119, 0.045);
}

.role-universal-result[hidden] {
  display: none;
}

.role-universal-result b {
  display: block;
  color: #fff8e7;
  font-size: 13px;
}

.role-universal-result p {
  margin: 6px 0 0;
  color: #afc1b7;
  font-size: 11px;
  line-height: 1.7;
}

.role-universal-result a {
  display: inline-flex;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 14px;
  align-items: center;
  color: #0b2b22;
  border-radius: 999px;
  background: var(--ui-gold-300, #ead9a8);
  font-size: 10px;
  font-weight: 850;
}

.role-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-menu-toggle {
  display: none;
}

.role-menu a,
.role-menu button {
  display: inline-flex;
  min-height: 36px;
  padding: 0 11px;
  align-items: center;
  color: #c5d5cd;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.role-menu a:hover,
.role-menu a.on,
.role-menu button:hover {
  color: var(--ui-gold-300, #ead9a8);
  border-color: rgba(234, 217, 168, 0.17);
  background: rgba(255, 255, 255, 0.04);
}

.role-mobile-nav {
  display: none;
  padding: 0 14px 14px;
}

.role-mobile-nav.open {
  display: grid;
}

.role-mobile-nav a {
  display: flex;
  min-height: 46px;
  padding: 0 7px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .role-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-bottom-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .role-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .role-bottom-nav a {
    min-width: 150px;
    flex: 0 0 150px;
  }

  .role-entry-card:nth-child(1),
  .role-entry-card:nth-child(5),
  .role-entry-card.role-entry-wide {
    grid-column: span 1;
  }

  .role-axis-grid {
    grid-template-columns: 1fr;
  }

  .role-signal-card {
    max-width: 620px;
  }

  .role-tool-grid {
    grid-template-columns: 1fr;
  }

  .role-universal-inner {
    grid-template-columns: 1fr;
  }

  .role-menu {
    display: none;
  }

  .role-menu-toggle {
    display: grid !important;
  }
}

@media (max-width: 680px) {
  .role-hub,
  .role-tool-section,
  .role-context-section,
  .role-universal {
    padding: 48px 0;
  }

  .role-hub-head,
  .role-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .role-hub-head p,
  .role-section-head p {
    font-size: 12px;
  }

  .role-entry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .role-bottom-nav {
    width: calc(100% + 28px);
    margin: 16px -14px 0;
    padding: 8px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .role-bottom-nav a {
    min-width: 138px;
    min-height: 54px;
    flex-basis: 138px;
  }

  .role-entry-card {
    min-height: 190px;
    padding: 18px;
    border-radius: 17px;
  }

  .role-entry-card h3 {
    font-size: 21px !important;
  }

  .role-axis-hero {
    padding: 32px 0 42px;
  }

  .role-axis-grid {
    gap: 26px;
  }

  .role-axis-copy h1 {
    margin: 14px 0 17px;
  }

  .role-axis-copy > p {
    font-size: 13px;
    line-height: 1.76;
  }

  .role-points {
    margin-top: 18px;
  }

  .role-points span {
    min-height: 32px;
    font-size: 9.5px;
  }

  .role-axis-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .role-axis-actions :is(a, button) {
    width: 100%;
    min-height: 44px;
  }

  .role-signal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .role-tool-card {
    padding: 18px;
    border-radius: 18px;
  }

  .role-form-row {
    grid-template-columns: 1fr;
  }

  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .role-result-metrics {
    grid-template-columns: 1fr;
  }

  .role-flow-grid {
    grid-template-columns: 1fr;
  }

  .role-flow-card {
    min-height: auto;
  }

  .role-universal-form {
    padding: 17px;
  }
}

.role-universal-card {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .role-entry-card,
  .role-entry-go::after {
    transition: none;
  }
}
