/* ScholarERP — Module detail pages (shared) */

.mod-page {
  --mod-accent: #2563EB;
  --mod-accent2: #4F46E5;
  --mod-light: #EFF6FF;
  padding-top: 0;
  color: #0f172a;
}

.mod-hero {
  position: relative;
  padding: 120px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--mod-light), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}

.mod-hero__glow {
  position: absolute;
  inset: auto -10% 20% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mod-accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.mod-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 28px;
}

.mod-breadcrumb a {
  color: var(--mod-accent);
  text-decoration: none;
}

.mod-breadcrumb a:hover {
  text-decoration: underline;
}

.mod-breadcrumb__sep {
  opacity: 0.5;
}

.mod-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.mod-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mod-accent);
  background: var(--mod-light);
  border: 1px solid color-mix(in srgb, var(--mod-accent) 22%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}

.mod-pill--new { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.mod-pill--beta { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.mod-hero__copy h1 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 18ch;
}

.mod-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 20px;
  max-width: 52ch;
}

.mod-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.mod-tag {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 5px 10px;
  border-radius: 8px;
}

.mod-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.mod-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px 20px;
  padding-top: 8px;
}

.mod-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.mod-hero__stat strong {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mod-accent);
}

.mod-hero__stat span {
  font-size: 12.5px;
  color: #64748b;
  max-width: 16ch;
  line-height: 1.35;
}

.mod-hero__stat-divider {
  width: 1px;
  background: #e2e8f0;
  align-self: stretch;
}

.mod-snapshot {
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
}

.mod-snapshot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mod-accent), var(--mod-accent2));
}

.mod-snapshot__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--mod-accent), var(--mod-accent2));
  margin-bottom: 16px;
}

.mod-snapshot h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.mod-snapshot > p {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 20px;
}

.mod-snapshot__dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.mod-snapshot__dl div {
  display: grid;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mod-snapshot__dl dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.mod-snapshot__dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.mod-snapshot__dl a {
  color: #93c5fd;
  text-decoration: none;
}

.mod-section {
  padding: 80px 0;
}

.mod-section--muted {
  background: #f8fafc;
}

.mod-pain-grid,
.mod-cap-grid,
.mod-persona-grid,
.mod-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mod-pain-card,
.mod-cap-card,
.mod-persona-card,
.mod-related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}

.mod-pain-card h3,
.mod-cap-card h3,
.mod-persona-card h3,
.mod-related-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.mod-pain-card p,
.mod-cap-card p,
.mod-persona-card p,
.mod-related-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.mod-cap-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mod-cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.mod-cap-card__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mod-accent), var(--mod-accent2));
}

.mod-workflow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.mod-workflow__step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}

.mod-workflow__num {
  display: inline-flex;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mod-accent);
  background: var(--mod-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.mod-workflow__step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.mod-workflow__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.mod-persona-card__access {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mod-accent);
  margin-bottom: 10px;
}

.mod-integ-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mod-integ-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.mod-integ-card:hover {
  border-color: var(--mod-accent);
  transform: translateY(-2px);
}

.mod-integ-card__icon {
  font-size: 1.25rem;
}

.mod-integ-card__title {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.mod-integ-card__arrow {
  color: #94a3b8;
  font-weight: 700;
}

.mod-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.mod-outcome {
  text-align: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--mod-light), #fff);
  border: 1px solid color-mix(in srgb, var(--mod-accent) 18%, #e2e8f0);
}

.mod-outcome strong {
  display: block;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--mod-accent);
  margin-bottom: 6px;
}

.mod-outcome span {
  font-size: 13.5px;
  color: #64748b;
}

.mod-quote {
  margin: 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: #0b1220;
  color: #e2e8f0;
}

.mod-quote p {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 16px;
  font-weight: 500;
}

.mod-quote footer {
  font-size: 13px;
  color: #94a3b8;
}

.mod-quote cite {
  font-style: normal;
  font-weight: 700;
  color: #f8fafc;
}

.mod-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.mod-faq__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 18px;
}

.mod-faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0;
}

.mod-faq__item summary::-webkit-details-marker {
  display: none;
}

.mod-faq__item p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

.mod-related-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mod-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.mod-related-card__icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.mod-related-card__cta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mod-accent);
}

.mod-related-footer {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 960px) {
  .mod-hero__grid,
  .mod-pain-grid,
  .mod-cap-grid,
  .mod-persona-grid,
  .mod-related-grid,
  .mod-outcome-grid,
  .mod-integ-grid {
    grid-template-columns: 1fr;
  }

  .mod-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .mod-hero__stat-divider {
    display: none;
  }

  .mod-hero__copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .mod-hero {
    padding: 100px 0 48px;
  }

  .mod-workflow {
    grid-template-columns: 1fr;
  }

  .mod-section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod-cap-card,
  .mod-integ-card,
  .mod-related-card {
    transition: none;
  }
}
