/* VELTORIA: VSD-83 — styles for /roles hub + per-role landing pages.
 * Reuses landing.css base components (containers, sections, cards, btns).
 * Adds role-specific layouts and the per-role tint accent via --role-tint.
 */

/* ===== Roles hub: how-it-works ===== */
.role-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .role-howto-grid { grid-template-columns: 1fr; }
}
.role-howto-step {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.role-howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(255, 70%, 60%), hsl(220, 70%, 55%));
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.role-howto-step h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.role-howto-step p { margin: 0; color: var(--text-secondary, #6b7280); font-size: 0.95rem; }

/* ===== Roles hub: card grid ===== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 1024px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .role-grid { grid-template-columns: 1fr; } }

.role-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 0.875rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--role-tint, hsl(220, 70%, 55%));
}
.role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  border-color: var(--role-tint, hsl(220, 70%, 55%));
}
.role-card-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.role-card-title {
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.role-free-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: hsl(150, 60%, 92%);
  color: hsl(150, 60%, 30%);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.role-card-desc { color: var(--text-secondary, #6b7280); font-size: 0.95rem; line-height: 1.5; flex: 1; margin: 0.25rem 0 0; }
.role-card-cta { color: var(--role-tint, hsl(220, 70%, 55%)); font-weight: 600; font-size: 0.95rem; margin-top: 0.5rem; }

/* ===== Per-role detail page ===== */
.role-detail-hero {
  position: relative;
  padding-top: 6rem;
}
.role-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--role-tint, hsl(220, 70%, 55%)) 12%, transparent),
    transparent);
  pointer-events: none;
}
.role-detail-hero .container { position: relative; }
.role-detail-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.role-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}
@media (max-width: 900px) { .role-detail-grid { grid-template-columns: 1fr; } }

.role-detail-long { font-size: 1.05rem; line-height: 1.7; color: var(--text-primary, #111827); margin-bottom: 1.5rem; }
.role-detail-subhead { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.25rem; }

/* Starter chip grid */
.role-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .role-chip-grid { grid-template-columns: 1fr; } }

.role-chip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.625rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.role-chip-card:hover {
  border-color: var(--role-tint, hsl(220, 70%, 55%));
  background: color-mix(in oklab, var(--role-tint, hsl(220, 70%, 55%)) 5%, var(--bg-card, #fff));
}
.role-chip-prompt { font-size: 0.95rem; line-height: 1.4; }
.role-chip-arrow { color: var(--role-tint, hsl(220, 70%, 55%)); font-weight: 600; }

.role-howto-list { padding-left: 1.25rem; line-height: 1.8; color: var(--text-primary, #111827); }
.role-howto-list li { margin-bottom: 0.5rem; }

/* Sidebar cards */
.role-detail-side { display: flex; flex-direction: column; gap: 1rem; }
.role-detail-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.role-detail-card h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.role-detail-card p { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--text-secondary, #6b7280); line-height: 1.5; }
.role-detail-side-link { font-size: 0.85rem; color: var(--text-secondary, #6b7280); }

/* Other roles row */
.role-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) { .role-other-grid { grid-template-columns: repeat(2, 1fr); } }

.role-other-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-top: 3px solid var(--role-tint, hsl(220, 70%, 55%));
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.role-other-card:hover { transform: translateY(-2px); }
.role-other-icon { font-size: 1.75rem; }
.role-other-name { font-weight: 600; font-size: 0.95rem; }
.role-other-cta { text-align: center; margin-top: 1.5rem; }

/* ===== Generic CTA card (used by hub + per-role) =====
 * Site is currently dark-themed; the previous light-purple gradient looked
 * like a "white block" against the dark page. Use a dark gradient that
 * picks up the brand purple/blue at low intensity so the card sits
 * naturally on the dark background. */
.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(120, 100, 220, 0.18), rgba(80, 130, 220, 0.18)), rgba(14, 26, 49, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 3rem 2rem;
  color: #ffffff;
}
.cta-card h2 { margin: 0 0 0.75rem; font-size: 1.875rem; color: #ffffff; }
.cta-card p { margin: 0 auto 1.75rem; max-width: 32rem; color: rgba(255, 255, 255, 0.75); }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Hero CTA row reuse on detail ===== */
.hero-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
