/**
 * MASCO ROLES PAGE STYLES
 * Loaded ONLY on Roles page
 */

.role-page {
  /* Ledger / stamped-document palette */
  --gold: #E3AE1C;
  --gold-dk: #C4930F;
  --gold-pale: #F8ECC6;
  --sage: #4B6B3A;
  --sage-pale: #E6EEDD;
  --brick: #A23B2E;
  --brick-pale: #F3E2DC;
  --paper: #FBF7EE;
  --paper-alt: #F3ECD9;
  --paper-line: #DDD0AE;
  --body: #4A2E42;
  --muted: #7A5E70;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 100px;
  --sh-sm: 0 2px 10px rgba(43, 10, 34, .08);
  --sh-md: 0 10px 30px rgba(43, 10, 34, .12);
  --sh-lg: 0 24px 60px rgba(43, 10, 34, .16);
}

.role-page *,
.role-page *::before,
.role-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.role-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .role-page * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Touch & Accessibility ── */
.role-page a,
.role-page button,
.role-page [role='button'] {
  touch-action: manipulation;
}

.role-page .skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s;
}
.role-page .skip-link:focus { top: 0; }

.role-page :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Typography ── */
.role-page h1,
.role-page h2,
.role-page h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.role-page h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; }
.role-page h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; }
.role-page h3 { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.3; }
.role-page h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.role-page p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}
.role-page .lead {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
}

/* ── Containers ── */
.role-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.role-page .container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Tags ── */
.role-page .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.role-page .tag::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.role-page .tag--white { color: rgba(255, 255, 255, 0.62); }
.role-page .tag--gold { color: var(--gold); }

/* ── Buttons ── */
.role-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 48px;
}
.role-page .btn-y {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.role-page .btn-y:hover {
  background: var(--yellow-dk);
  border-color: var(--yellow-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(251, 220, 0, .40);
}
.role-page .btn-dark {
  background: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}
.role-page .btn-dark:hover {
  background: var(--plum-deep);
  border-color: var(--plum-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(43, 10, 34, .30);
}
.role-page .btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.role-page .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--white);
}
.role-page .btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.role-page .btn-group>.btn { flex: none !important; }

/* ── Breadcrumb ── */
.role-page .breadcrumb-nav {
  background: var(--white);
  border-bottom: 1px solid #E0E0E0;
  padding: 11px 0;
}
.role-page .bc-inner {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--body);
}
.role-page .bc-inner li { display: flex; align-items: center; gap: 6px; }
.role-page .bc-inner a { color: var(--body); text-decoration: none; }
.role-page .bc-inner a:hover { text-decoration: underline; }
.role-page .bc-sep,
.role-page .bc-current { color: var(--muted); }

/* ── Hero ── */
.role-page .hero {
  background: var(--plum);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.role-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
.role-page .hero-inner {
  display: grid;
  grid-template-columns: 54% 46%;
  gap: 56px;
  align-items: center;
  position: relative;
}
.role-page .hero h1 {
  color: var(--white);
  font-weight: 600;
  max-width: 100%;
  word-break: break-word;
}
.role-page .hero .lead {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 18px;
  max-width: 520px;
}
.role-page .hero-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.role-page .hero-cta .btn { font-size: 16px; padding: 15px 34px; }
.role-page .hero-trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.role-page .hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.68);
}
.role-page .hero-trust-item svg { flex-shrink: 0; }

/* ── Document Scene ── */
.role-page .doc-scene {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.role-page .doc-card {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.role-page .doc-sheet {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: var(--sh-md);
}
.role-page .doc-sheet--back {
  transform: rotate(6deg) translate(10px, 6px);
  background: #F0E6C9;
}
.role-page .doc-sheet--mid {
  transform: rotate(-3deg) translate(-6px, 2px);
  background: #F6EEDA;
}
.role-page .doc-sheet--front {
  position: relative;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: var(--sh-lg);
  padding: 28px 26px 26px;
  transform: rotate(-1.2deg);
}
.role-page .doc-kicker {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-page .doc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
  margin-bottom: 20px;
}
.role-page .doc-rule {
  height: 1px;
  background: var(--paper-line);
  margin-bottom: 12px;
}
.role-page .doc-rule:nth-of-type(3) { width: 88%; }
.role-page .doc-rule:nth-of-type(4) { width: 64%; }
.role-page .doc-sig-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-line);
}
.role-page .doc-sig-mark path {
  fill: none;
  stroke: var(--plum);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-page .doc-sig-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.role-page .stamp {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-10deg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(230, 238, 221, 0.5);
  backdrop-filter: blur(1px);
}
.role-page .stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  opacity: 0.55;
}
.role-page .doc-tab {
  position: absolute;
  bottom: -26px;
  left: -18px;
  width: 190px;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  padding: 12px 14px;
  transform: rotate(2deg);
}
.role-page .doc-tab-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.role-page .doc-tab-bar-track {
  height: 5px;
  background: var(--paper-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.role-page .doc-tab-bar-fill {
  height: 100%;
  background: var(--gold-dk);
  border-radius: 3px;
}
.role-page .doc-tab-meta {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--muted);
}

/* ── Industry Strip ── */
.role-page .industry-strip {
  background: var(--plum-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}
.role-page .industry-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.role-page .industry-strip-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  flex-shrink: 0;
}
.role-page .industry-strip-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.role-page .hero-role-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}

/* ── Glance Section ── */
.role-page .glance-section {
  background: var(--paper);
  padding: 64px 0 68px;
  border-top: 1px solid var(--paper-line);
}
.role-page .glance-head { max-width: 75%; margin-bottom: 38px; }
.role-page .glance-head h2 { margin-bottom: 10px; }
.role-page .glance-head p { color: var(--muted); font-size: 16.5px; }
.role-page .glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.role-page .glance-card {
  background: var(--white);
  padding: 24px 22px;
}
.role-page .glance-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 10px;
}
.role-page .glance-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.role-page .glance-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Problem / Ledger Section ── */
.role-page .problem-section {
  background: var(--paper);
  padding: 84px 0;
}
.role-page .problem-head { text-align: center; margin-bottom: 44px; }
.role-page .problem-section h2 { max-width: 680px; margin: 0 auto 12px; }
.role-page .problem-section .subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}
.role-page .ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--paper-line);
  box-shadow: var(--sh-md);
  background: var(--white);
}
.role-page .ledger-panel {
  padding: 36px 34px;
  position: relative;
}
.role-page .ledger-panel+.ledger-panel {
  border-left: 1px dashed var(--paper-line);
}
.role-page .ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.role-page .ledger-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.role-page .ledger-verdict {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  transform: rotate(-3deg);
}
.role-page .ledger-verdict--void { color: var(--brick); }
.role-page .ledger-verdict--ok { color: var(--sage); }
.role-page .ledger-list { list-style: none; display: flex; flex-direction: column; }
.role-page .ledger-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-line);
}
.role-page .ledger-item:last-child { border-bottom: none; }
.role-page .ledger-item span:last-child { flex: 1; }
.role-page .ledger-mark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
}
.role-page .ledger-panel--void .ledger-mark { color: var(--brick); }
.role-page .ledger-panel--ok .ledger-mark { color: var(--sage); }
.role-page .ledger-panel--void .ledger-item { color: var(--body); }
.role-page .ledger-panel--ok {
  background: var(--yellow);
  border-top: 4px solid var(--yellow-dk);
}
.role-page .ledger-panel--ok .ledger-item {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: rgba(43, 10, 34, 0.14);
}
.role-page .ledger-mobile { display: none; }

/* ── Use Cases Section ── */
.role-page .use-cases-section {
  background: var(--paper);
  padding: 84px 0;
  border-top: 1px solid var(--paper-line);
}
.role-page .use-cases-section .tag { margin-bottom: 14px; }
.role-page .use-cases-section h2 { margin-bottom: 8px; }
.role-page .use-cases-section .subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 44px;
  font-size: 16.5px;
}
.role-page .use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.role-page .use-case-card {
  background: var(--white);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
}
.role-page .use-case-card:hover { background: var(--gold-pale); }
.role-page .use-case-card::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-dk);
  margin-bottom: 16px;
}
.role-page .use-case-card h4 { margin-bottom: 8px; font-size: 15.5px; }
.role-page .use-case-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.role-page .use-case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-top: 16px;
}
.role-page .use-case-link:hover { text-decoration: underline; }

.role-page .more-usecases {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--paper-line);
}
.role-page .more-usecases-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.role-page .more-usecases-list { display: flex; flex-wrap: wrap; gap: 10px; }
.role-page .more-usecase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.role-page .more-usecase-link:hover {
  border-color: var(--plum);
  background: var(--gold-pale);
}

/* ── Portal & Transfers Use Cases ── */
.role-page .portal-usecases-block,
.role-page .transfers-usecases-block { margin-top: 52px; }
.role-page .portal-usecases-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.role-page .portal-usecases-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 560px;
}
.role-page .portal-usecases-grid,
.role-page .transfers-usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.role-page .portal-usecase-card {
  background: var(--white);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.role-page .portal-usecase-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
}
.role-page .portal-usecase-card h4 { font-size: 14px; margin-bottom: 5px; }
.role-page .portal-usecase-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Template Section ── */
.role-page .template-section {
  background: var(--plum-deep);
  padding: 84px 0;
}
.role-page .template-section .tag { color: var(--gold); }
.role-page .template-section h2 { color: var(--white); margin-bottom: 8px; }
.role-page .template-section .subtitle {
  color: rgba(255, 255, 255, 0.62);
  max-width: 600px;
  margin-bottom: 38px;
}
.role-page .template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.role-page .template-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.role-page .template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.role-page .template-card .tpl-badge {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dk);
  margin-bottom: 11px;
}
.role-page .template-card h4 {
  font-size: 13.5px;
  margin-bottom: 5px;
  line-height: 1.35;
  color: var(--ink);
}
.role-page .template-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.role-page .template-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
}
.role-page .template-browse-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ── How It Works ── */
.role-page .how-section {
  background: var(--paper);
  padding: 84px 0;
  border-top: 1px solid var(--paper-line);
}
.role-page .how-section h2 { margin-bottom: 8px; }
.role-page .how-section .subtitle {
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
  font-size: 16.5px;
}
.role-page .steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
}
.role-page .step-card {
  background: var(--white);
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.role-page .step-num-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-dk);
  display: block;
  margin-bottom: 6px;
}
.role-page .step-card h4 { color: var(--ink); margin-bottom: 2px; font-size: 15.5px; }
.role-page .step-card p { font-size: 13.5px; color: var(--body); line-height: 1.6; }
.role-page .step-tip {
  font-family: 'Inter', sans-serif;
  background: var(--gold-pale);
  border: 1px solid rgba(227, 174, 28, 0.4);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 11px;
  color: #5C4A00;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Industries Section ── */
.role-page .industries-section {
  background: var(--paper-alt);
  padding: 84px 0;
}
.role-page .industries-section h2 { margin-bottom: 8px; }
.role-page .industries-section .subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 38px;
}
.role-page .industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.role-page .industry-card {
  background: var(--white);
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.18s ease;
}
.role-page .industry-card:hover { background: var(--gold-pale); }
.role-page .industry-card h4 {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.role-page .industry-card h4::after {
  content: "→";
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.2s ease;
}
.role-page .industry-card:hover h4::after { transform: translateX(4px); }
.role-page .industry-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Related Roles ── */
.role-page .related-roles-section {
  background: var(--paper);
  padding: 64px 0;
  border-top: 1px solid var(--paper-line);
}
.role-page .related-roles-section h2 { margin-bottom: 8px; }
.role-page .related-roles-section .subtitle {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 26px;
}
.role-page .related-roles-row { display: flex; flex-wrap: wrap; gap: 12px; }
.role-page .related-role-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: 13px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.role-page .related-role-link:hover {
  border-color: var(--plum);
  background: var(--gold-pale);
}

/* ── FAQ Section ── */
.role-page .faq-section {
  background: var(--paper-alt) !important;
  padding: 84px 0 !important;
}
.role-page .faq-section .container--narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.role-page .faq-section h2 {
  color: var(--ink) !important;
  margin-bottom: 36px !important;
}
.role-page .faq-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.role-page .faq-item {
  border-bottom: 1px solid var(--paper-line) !important;
  padding: 0 !important;
}
.role-page .faq-item:first-child {
  border-top: 1px solid var(--paper-line) !important;
}
.role-page .faq-btn {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 20px 0 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-align: left !important;
  line-height: 1.4 !important;
}
.role-page .faq-btn:hover { color: var(--plum) !important; }
.role-page .faq-icon {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--gold-dk) !important;
  background: var(--gold-pale) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}
.role-page .faq-item.open .faq-icon {
  transform: rotate(45deg) !important;
  background: var(--gold) !important;
  color: var(--white) !important;
}
.role-page .faq-panel { padding-bottom: 24px !important; }
.role-page .faq-panel p {
  font-size: 15px !important;
  color: var(--body) !important;
  line-height: 1.7 !important;
  max-width: 100% !important;
}

/* ── CTA Section ── */
.role-page .cta-section {
  background: var(--plum);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.role-page .cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
}
.role-page .cta-section .container { max-width: 760px; position: relative; }
.role-page .cta-stamp {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}
.role-page .cta-stamp svg { width: 26px; height: 26px; }
.role-page .cta-section h2 {
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 14px;
}
.role-page .cta-section .subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.role-page .cta-section .btn-group { justify-content: center; }
.role-page .cta-trust-items {
  display: flex;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.role-page .cta-trust-item {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.role-page .cta-trust-item::before {
  content: "·";
  margin-right: 24px;
  color: var(--gold);
}
.role-page .cta-trust-item:first-child::before { content: none; }
.role-page .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;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .role-page .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .role-page .doc-scene { height: 340px; }
  .role-page .steps-grid { grid-template-columns: 1fr 1fr; }
  .role-page .portal-usecases-grid,
  .role-page .transfers-usecases-grid { grid-template-columns: 1fr; }
  .role-page .ledger { grid-template-columns: 1fr; }
  .role-page .ledger-panel+.ledger-panel {
    border-left: none;
    border-top: 1px dashed var(--paper-line);
  }
  .role-page .use-cases-grid { grid-template-columns: 1fr 1fr; }
  .role-page .template-grid { grid-template-columns: 1fr 1fr; }
  .role-page .industries-grid { grid-template-columns: 1fr; }
  .role-page .glance-head { max-width: 100%; }
}

@media (max-width: 640px) {
  .role-page .container,
  .role-page .container--narrow { padding: 0 18px; }
  .role-page .hero { padding: 52px 0 40px; }
  .role-page .hero-cta { align-items: stretch; }
  .role-page .doc-scene { height: 300px; }
  .role-page .doc-card { max-width: 260px; }
  .role-page .doc-tab { width: 150px; left: -8px; }
  .role-page .hero-trust { gap: 8px 16px; }
  .role-page .steps-grid { grid-template-columns: 1fr; }
  .role-page .use-cases-grid { grid-template-columns: 1fr; }
  .role-page .template-grid { grid-template-columns: 1fr 1fr; }
  .role-page .template-grid .template-card:nth-child(n+5) { display: none; }
  .role-page .btn { width: 100%; justify-content: center; text-align: center; }
  .role-page .btn-group { flex-direction: column; align-items: stretch; gap: 12px; }
  .role-page .faq-btn { min-height: 44px; padding: 16px 0; }
  .role-page section,
  .role-page .hero,
  .role-page .problem-section,
  .role-page .use-cases-section,
  .role-page .template-section,
  .role-page .how-section,
  .role-page .industries-section,
  .role-page .related-roles-section,
  .role-page .faq-section,
  .role-page .cta-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .role-page .ledger { display: none; }
  .role-page .ledger-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .role-page .ledger-mobile .ledger-panel { border: 1px solid var(--paper-line); }
  .role-page .cta-trust-items { gap: 8px 16px; }
  .role-page .glance-head { max-width: 100%; }
}

@media (max-width: 360px) {
  .role-page .container,
  .role-page .container--narrow { padding: 0 14px; }
  .role-page .template-grid { grid-template-columns: 1fr; }
  .role-page .template-grid .template-card:nth-child(n+5) { display: none; }
}

@media (max-width: 400px) {
  .role-page .doc-scene {
    height: auto;
    padding: 16px 0 44px;
    overflow: visible;
  }
  .role-page .doc-card { max-width: 230px; margin: 0 auto; }
  .role-page .doc-tab {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 30px;
    transform: rotate(0.5deg);
  }
}