/* Shared polish for mentordiscipleship.com — does not change track URLs */
:root {
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --night: #081521;
  --paper: #f6f2e9;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography refresh on marketing pages */
.hero-h1,
.section-title,
.org-head,
.demo-banner h2,
.path-head,
.tracks-spotlight h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.03em;
}

.hero-eyebrow,
.foot-col-label,
.foot-tagline,
.nav-links a,
.path-icon,
.pricing-billing-tab {
  font-family: var(--font-mono);
}

/* Richer hero atmosphere (homepage) */
#hero {
  background:
    radial-gradient(ellipse 62% 42% at 50% 18%, rgba(240, 120, 32, 0.11), transparent 68%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(26, 51, 71, 0.9), transparent 70%),
    linear-gradient(165deg, var(--navy) 0%, var(--night, #081521) 100%);
}

.hero-rings {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(26, 51, 71, 0.85) 0%, transparent 70%),
    radial-gradient(circle 320px at 50% 38%, rgba(240, 120, 32, 0.1) 0%, transparent 70%);
}

/* Nav: clearer focus + mobile overlay */
nav {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.nav-links a:focus-visible,
.mob-nav a:focus-visible,
.btn-p:focus-visible,
.btn-s:focus-visible,
.ham:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.mob-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(4, 12, 18, 0.55);
  backdrop-filter: blur(2px);
}

.mob-nav-backdrop.open {
  display: block;
}

.mob-nav {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mob-nav a:last-child {
  border-bottom: none;
  margin-top: 0.35rem;
}

body.nav-open {
  overflow: hidden;
}

/* Tracks spotlight (homepage) */
.tracks-spotlight {
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(240, 120, 32, 0.08), transparent 70%),
    var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tracks-spotlight-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.tracks-spotlight-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.tracks-spotlight-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange);
  font: 600 0.62rem/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tracks-spotlight h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.12;
}

.tracks-spotlight-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.75;
}

.tracks-preview-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
}

.track-preview-card {
  position: relative;
  min-height: 220px;
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(138, 176, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(26, 59, 76, 0.92), rgba(8, 21, 33, 0.9));
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.track-preview-card.has-cover {
  padding: 0;
}

.track-preview-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.track-preview-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 37, 53, 0.08), rgba(8, 21, 33, 0.55) 40%, rgba(8, 21, 33, 0.96));
  pointer-events: none;
}

.track-preview-body {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.track-preview-label {
  margin: 0 0 0.5rem;
  color: var(--orange);
  font: 600 0.58rem/1.4 var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.track-preview-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--paper);
}

.track-preview-blurb {
  margin: 0;
  color: #b1c4ca;
  font-size: 0.9rem;
  line-height: 1.55;
}

.track-preview-card:hover {
  border-color: var(--orange);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.tracks-spotlight-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.tracks-preview-loading,
.tracks-preview-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .track-preview-card {
    transition: none;
  }
}

/* Slightly tighter hero on small screens */
@media (max-width: 540px) {
  .hero-mark {
    width: clamp(160px, 44vw, 220px);
    height: clamp(160px, 44vw, 220px);
  }

  #hero {
    padding-top: 5.75rem;
  }
}
