/* ==========================================================================
   Pathway to Leadership (PTL) — Global Design System & Stylesheet
   ========================================================================== */

:root {
  /* Primary Colors */
  --color-espresso: #2B1F1A;      /* Dark backgrounds, footer, nav-dark */
  --color-espresso-rgb: 43, 31, 26;

  /* Secondary Colors */
  --color-terracotta: #A64B2A;    /* Headlines, key UI highlights, trust anchors */
  --color-terracotta-rgb: 166, 75, 42;

  /* Accent Colors */
  --color-gold: #C9932E;          /* CTAs, highlights, badges — use sparingly */
  --color-gold-rgb: 201, 147, 46;

  /* Neutrals */
  --color-cream: #F5EFE6;         /* Main light background */
  --color-stone: #DCD3C4;         /* Cards, dividers, secondary bg */
  --color-stone-rgb: 220, 211, 196;
  --color-white: #FFFFFF;
  --color-charcoal-text: #332B24; /* Body text on light backgrounds */
  --color-charcoal-light: #52473D; /* Muted text on light backgrounds */

  /* Functional Colors */
  --color-success: #4C6B4F;
  --color-error: #8C3B2E;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 64px;
  --space-7: 128px;

  /* Elevation (Shadows) */
  --shadow-sm: 0 2px 4px rgba(43, 31, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(43, 31, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 31, 26, 0.12);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-round: 9999px;
  --border-stone: 1px solid rgba(220, 211, 196, 0.6);
  --border-espresso: 1px solid rgba(43, 31, 26, 0.15);
}

/* Modern Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-espresso);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-charcoal-light);
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

/* Shared Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

section {
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(220, 211, 196, 0.4);
}

@media (min-width: 768px) {
  section {
    padding: var(--space-7) 0;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Premium Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-espresso);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background-color: var(--color-gold);
  color: var(--color-espresso);
}

.btn-accent:hover {
  background-color: var(--color-espresso);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--color-espresso);
  color: var(--color-espresso);
  background-color: transparent;
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--color-espresso);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Section-Specific Accent Styling */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--border-radius-round);
  background-color: rgba(166, 75, 42, 0.1);
  color: var(--color-terracotta);
  margin-bottom: var(--space-3);
}

/* Header / Navbar Styling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 239, 230, 0.85); /* Frosty Cream */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-stone);
  transition: transform var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo span {
  color: var(--color-terracotta);
  font-style: italic;
}

.nav-menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-terracotta);
}

.nav-cta {
  display: none;
}

/* Sign In / Log Out (utility nav — secondary, never gold) */
.nav-auth {
  display: none;
  align-items: center;
  margin-right: var(--space-3);
}

.nav-signin-link,
.nav-logout-btn {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  background: none;
  border: 1px solid rgba(43, 31, 26, 0.15);
  border-radius: var(--border-radius-md);
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-signin-link:hover,
.nav-logout-btn:hover {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}

/* Hidden by default until nav-auth.js resolves session state, to avoid a flash of the wrong link */
body[data-auth="out"] .nav-signin-link {
  display: inline-flex;
}

body[data-auth="in"] .nav-logout-btn {
  display: inline-flex;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
  .nav-cta {
    display: block;
  }
  .nav-auth {
    display: flex;
  }
}

/* Hamburger mobile nav button */
.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-espresso);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

/* Mobile dropdown menu */
.mobile-dropdown {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--color-cream);
  border-bottom: var(--border-stone);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(-150%);
  transition: transform var(--transition-normal);
  z-index: 99;
}

.mobile-dropdown.open {
  transform: translateY(0);
}

.mobile-dropdown .nav-link {
  font-size: 1.1rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(220, 211, 196, 0.3);
}

/* Hero Section */
.hero-section {
  padding-top: var(--space-5);
  background: radial-gradient(circle at 80% 20%, rgba(201, 147, 46, 0.05), transparent 40%);
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
    text-align: left;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 992px) {
  .hero-text {
    text-align: left;
  }
}

.hero-headline {
  margin-bottom: var(--space-3);
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

/* Dashboard Mockup Component */
.dashboard-mockup {
  width: 100%;
  max-width: 500px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-slow);
}

.mockup-header {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-espresso);
}

.mockup-user-details h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-cream);
  line-height: 1;
}

.mockup-user-details p {
  font-size: 0.7rem;
  color: var(--color-stone);
  margin: 0;
}

.mockup-tab-indicator {
  background-color: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  color: var(--color-gold);
  font-weight: 600;
}

.mockup-tabs {
  display: flex;
  background-color: var(--color-stone);
  border-bottom: var(--border-espresso);
}

.mockup-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-charcoal-light);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.mockup-tab.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
  background-color: var(--color-white);
}

.mockup-content {
  padding: var(--space-4);
  min-height: 250px;
  position: relative;
}

.mockup-panel {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.mockup-panel.active {
  display: block;
}

/* Panel Elements */
.pulse-question {
  margin-bottom: var(--space-3);
}

.pulse-question label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.pulse-options {
  display: flex;
  gap: var(--space-2);
}

.pulse-opt-btn {
  flex: 1;
  background-color: var(--color-cream);
  border: var(--border-espresso);
  padding: 8px var(--space-2);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pulse-opt-btn.selected {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

.pulse-slider {
  width: 100%;
  accent-color: var(--color-terracotta);
}

.pulse-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--color-charcoal-light);
}

/* Streak Panel */
.progress-bar-container {
  background-color: var(--color-cream);
  border-radius: var(--border-radius-round);
  height: 12px;
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(43, 31, 26, 0.08);
}

.progress-fill {
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  height: 100%;
  width: 65%;
  border-radius: var(--border-radius-round);
  transition: width var(--transition-slow);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.streak-strip {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.streak-day span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

.streak-circle {
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-cream);
  border: var(--border-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition-fast);
}

.streak-circle.checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-white);
}

.streak-circle.missed {
  border-color: var(--color-error);
  color: var(--color-error);
}

/* "Off" = not scheduled to work — deliberately neutral, not a warning state,
   so crew members don't feel penalized for a day they weren't scheduled. */
.streak-circle.off {
  background-color: transparent;
  border-style: dashed;
  opacity: 0.5;
}

.streak-status-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-charcoal-text);
  border-top: 1px dashed var(--color-stone);
  padding-top: var(--space-2);
}

/* Badge Shelf Panel */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  text-align: center;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.badge-icon-holder {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.badge-item.locked .badge-icon-holder {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-item.unlocked .badge-icon-holder {
  background-color: rgba(201, 147, 46, 0.15);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  box-shadow: 0 0 12px rgba(201, 147, 46, 0.2);
}

.badge-item h5 {
  font-size: 0.75rem;
  color: var(--color-espresso);
  line-height: 1.1;
}

.badge-item p {
  font-size: 0.6rem;
  color: var(--color-charcoal-light);
  margin: 0;
}

/* Problem Section */
.problem-section {
  background-color: var(--color-white);
}

.problem-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.problem-headline {
  margin-bottom: var(--space-4);
}

.problem-quote {
  position: relative;
  max-width: 720px;
  margin: 0 auto var(--space-4) auto;
  padding: var(--space-3) var(--space-5) 0 var(--space-5);
}

.problem-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  color: rgba(166, 75, 42, 0.25);
  margin-bottom: -0.4em;
}

.problem-quote p {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-style: italic;
  font-family: var(--font-heading);
  line-height: 1.4;
  color: var(--color-terracotta);
  margin: 0;
}

.problem-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Solution Section */
.solution-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .solution-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.solution-graphics {
  display: flex;
  justify-content: center;
  position: relative;
}

.graphic-circle-overlay {
  width: 320px;
  height: 320px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  opacity: 0.3;
  position: absolute;
  z-index: 1;
}

.solution-card-mockup {
  position: relative;
  z-index: 2;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  width: 100%;
  max-width: 420px;
}

.solution-card-header {
  border-bottom: var(--border-stone);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}

.solution-card-header h4 {
  font-family: var(--font-body);
  color: var(--color-terracotta);
}

.solution-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.solution-card-item {
  display: flex;
  gap: var(--space-3);
}

.solution-card-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-round);
  background-color: rgba(76, 107, 79, 0.15);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.solution-card-item-text h5 {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.solution-card-item-text p {
  font-size: 0.8rem;
  margin: 0;
}

/* How It Works: Five Pillars Section */
.pillars-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5) auto;
}

.pillar-card {
  background-color: var(--color-white);
  border: var(--border-stone);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-stone);
  transition: background-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(166, 75, 42, 0.2);
}

.pillar-card:hover::before {
  background-color: var(--color-terracotta);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(43, 31, 26, 0.06);
  line-height: 1;
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  user-select: none;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: rgba(166, 75, 42, 0.08);
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.pillar-card h3 {
  margin-bottom: var(--space-2);
  font-size: 1.3rem;
}

.pillar-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* System Features Section */
.system-section {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  border-bottom: none;
}

.system-section h2, .system-section h3, .system-section h4 {
  color: var(--color-white);
}

.system-section p {
  color: var(--color-stone);
}

.system-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5) auto;
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .system-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.system-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 211, 196, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
}

.system-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

/* Proof Section */
.proof-section {
  background-color: var(--color-white);
}

.proof-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5) auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-3);
  border-right: 1px solid rgba(220, 211, 196, 0.6);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--color-cream);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4) var(--space-5);
  border: var(--border-stone);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-espresso);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author-img {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-espresso);
}

.testimonial-author-info h5 {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.testimonial-author-info p {
  font-size: 0.75rem;
  margin: 0;
}

/* Pricing / Lead Form Section */
.pricing-section {
  background: radial-gradient(circle at 10% 80%, rgba(201, 147, 46, 0.05), transparent 40%);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .pricing-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-6);
  }
}

.pricing-text {
  text-align: center;
}

@media (min-width: 992px) {
  .pricing-text {
    text-align: left;
  }
}

.pricing-pitch {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-terracotta);
  margin-bottom: var(--space-4);
}

.lead-form-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  width: 100%;
}

.lead-form h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  border: var(--border-espresso);
  background-color: var(--color-cream);
  color: var(--color-charcoal-text);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.form-error {
  display: block;
  min-height: 1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-success-message {
  display: none;
  text-align: center;
  padding: var(--space-4) 0;
  animation: fadeIn var(--transition-normal);
}

.success-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-round);
  background-color: rgba(76, 107, 79, 0.15);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-3) auto;
}

.form-success-message h4,
.auth-success-message h4 {
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

/* Site Footer */
.site-footer {
  background-color: var(--color-espresso);
  color: var(--color-stone);
  padding: var(--space-5) 0 var(--space-4) 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer-logo span {
  color: var(--color-gold);
  font-style: italic;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-stone);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-copyright {
  border-top: 1px solid rgba(220, 211, 196, 0.1);
  padding-top: var(--space-3);
  color: rgba(220, 211, 196, 0.5);
}

/* Auth Pages (Sign In / Sign Up / Dashboard) */
.auth-section {
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.auth-layout {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  text-align: center;
}

.auth-headline {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--space-2);
}

.auth-subheadline {
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-4);
}

.auth-form {
  text-align: left;
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-2);
}

.auth-forgot-link {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
}

.auth-forgot-link:hover {
  color: var(--color-terracotta);
}

.auth-form-error {
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-switch {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.password-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-charcoal-light);
  margin-top: 2px;
}

.auth-success-message {
  display: none;
  text-align: center;
  padding: var(--space-3) 0;
  animation: fadeIn var(--transition-normal);
}

/* Dashboard guard: content stays hidden until dashboard-guard.js confirms a session */
[data-auth-loading] .auth-card {
  visibility: hidden;
}

/* App Nav (authenticated pages) */
.app-nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-nav-email {
  display: none;
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
}

@media (min-width: 600px) {
  .app-nav-email {
    display: inline;
  }
}

/* Sidebar App Shell (Crew + Manager Dashboards) — desktop-only per spec, no
   mobile collapse. Collapses to icon-only by default; hovering, or
   focusing a link inside it (keyboard users), expands it to show labels.
   Always position:fixed, with app-main carrying a permanent left margin
   equal to the COLLAPSED width — so expanding only grows the sidebar's
   own box and overlays app-main on top of it; app-main's layout never
   shifts. Content that doesn't fit while collapsed (label text) isn't
   shrunk — flex-shrink:0 + white-space:nowrap keep it at full size, and
   the sidebar's own overflow:hidden is what visually crops it. */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-cream);
}

.dashboard-sidebar {
  width: 60px;
  flex-shrink: 0;
  background-color: var(--color-white);
  border-right: var(--border-stone);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-3);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
  transition: width 200ms ease, box-shadow 200ms ease;
}

.dashboard-sidebar:hover,
.dashboard-sidebar.sidebar-expanded,
.dashboard-sidebar:focus-within {
  width: 320px;
  box-shadow: var(--shadow-lg);
}

/* Belt-and-suspenders on top of the width/overflow clipping above: labels
   are also explicitly transparent at rest, so a future padding/icon-size
   tweak can't quietly let a sliver of text start leaking past the
   collapsed width's clip boundary again without anyone noticing (that's
   exactly how the last version of this bug happened — the label's start
   position crept inside the visible 76px, not accounted for by geometry
   alone). Doesn't affect screen readers: opacity, unlike display/
   visibility, never removes content from the accessibility tree. */
.sidebar-logo-text,
.sidebar-nav-label {
  opacity: 0;
  transition: opacity 150ms ease;
}

.dashboard-sidebar:hover .sidebar-logo-text,
.dashboard-sidebar.sidebar-expanded .sidebar-logo-text,
.dashboard-sidebar:focus-within .sidebar-logo-text,
.dashboard-sidebar:hover .sidebar-nav-label,
.dashboard-sidebar.sidebar-expanded .sidebar-nav-label,
.dashboard-sidebar:focus-within .sidebar-nav-label {
  opacity: 1;
}

/* Nav links, the logout button, and the logo all get an explicit width
   matching the EXPANDED sidebar's content box (320px - 2*16px padding =
   288px), rather than relying on flexbox shrink/stretch behavior to keep
   them full-width. This makes label visibility fully deterministic: these
   elements always render at their full size; only .dashboard-sidebar's
   own overflow:hidden + width transition ever crops/reveals them.
   Expanded width (and the logo's own font-size) were widened/reduced a
   notch from their first pass specifically because "PTL: In The Making" at
   1.25rem/800-weight Fraunces didn't fit the original 208px content width
   — nav labels (shorter, smaller, regular-weight body font) had comfortable
   room at that size, only the logo wordmark didn't. */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  width: 288px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-espresso);
  padding: 0 var(--space-2);
  margin-bottom: var(--space-5);
}

.sidebar-logo-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-espresso);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.sidebar-logo-text {
  white-space: nowrap;
}

.sidebar-logo span {
  color: var(--color-terracotta);
  font-style: italic;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  width: 288px;
  padding: 10px var(--space-2);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sidebar-nav-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.sidebar-nav-link:hover {
  background-color: var(--color-cream);
  color: var(--color-terracotta);
}

.sidebar-nav-link.active {
  background-color: rgba(166, 75, 42, 0.1);
  color: var(--color-terracotta);
  font-weight: 600;
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  margin-top: auto;
  width: 288px;
  justify-content: flex-start;
  background: none;
  border: none;
  padding: 10px var(--space-2);
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: left;
}

.sidebar-logout-btn:hover {
  background-color: var(--color-cream);
  color: var(--color-error);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 60px;
}

.dashboard-topbar {
  height: 70px;
  flex-shrink: 0;
  background-color: var(--color-white);
  border-bottom: var(--border-stone);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-5);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal-text);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.app-content {
  flex: 1;
  overflow-y: auto;
}

/* Sidebar Tabs: only the active tab's panel(s) render */
[data-tab] {
  display: none;
}

[data-tab].active {
  display: block;
}

/* Streak Tracker: Month View */
.streak-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.streak-month-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-cream);
  color: var(--color-charcoal-light);
}

.streak-month-cell--blank {
  background: none;
}

.streak-month-cell--checked {
  background-color: var(--color-success);
  color: var(--color-white);
}

.streak-month-cell--missed {
  background-color: rgba(140, 59, 46, 0.12);
  color: var(--color-error);
}

.streak-month-cell--off {
  background-color: transparent;
  border: 1px dashed rgba(220, 211, 196, 0.6);
  opacity: 0.6;
}

/* Reflections: locked/preview state */
.reflections-locked-state {
  text-align: center;
  color: var(--color-charcoal-light);
}

.reflections-locked-state h3 {
  margin-bottom: var(--space-2);
}

/* Dashboard Home (Crew + Manager) */
[data-auth-loading] .container > * {
  visibility: hidden;
}

.dashboard-section {
  padding-top: var(--space-5);
}

.dashboard-section + .dashboard-section {
  padding-top: 0;
}

/* Pulse gate: dims Middle/Bottom sections until the Daily Pulse is submitted
   (or already done today) — independent of the auth-loading gate above. */
.pulse-locked {
  opacity: 0.35;
  filter: grayscale(0.4);
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition-normal), filter var(--transition-normal);
}

.dashboard-welcome {
  max-width: 700px;
  margin-bottom: var(--space-5);
}

.dashboard-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-2);
}

.dashboard-subheadline {
  margin-bottom: var(--space-3);
}

.dashboard-stub-note {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  margin: var(--space-2) 0 0 0;
  min-height: 1em;
}

.dashboard-card {
  background-color: var(--color-white);
  border: var(--border-stone);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.dashboard-card .progress-labels {
  margin-bottom: var(--space-2);
}

.dashboard-card .streak-strip {
  margin-bottom: 0;
  margin-top: var(--space-3);
}

/* Promotion Timeline */
.promotion-timeline-card {
  margin-bottom: var(--space-4);
}

.promotion-estimate {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  margin: var(--space-2) 0 0 0;
}

/* Current Pillar Progress */
.pillar-progress-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pillar-progress-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-md);
  background-color: var(--color-cream);
}

.pillar-progress-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.pillar-progress-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.pillar-progress-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

.pillar-progress-item--completed .pillar-progress-number {
  background-color: rgba(76, 107, 79, 0.15);
  color: var(--color-success);
}

.pillar-progress-item--completed .pillar-progress-status {
  color: var(--color-success);
}

.pillar-progress-item--current {
  background-color: rgba(166, 75, 42, 0.08);
  border: 1px solid rgba(166, 75, 42, 0.25);
}

.pillar-progress-item--current .pillar-progress-number {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.pillar-progress-item--current .pillar-progress-status {
  color: var(--color-terracotta);
}

.pillar-progress-item--locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.pillar-progress-item--clickable {
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.pillar-progress-item--clickable:hover {
  background-color: rgba(166, 75, 42, 0.08);
}

/* Lessons: Pillar Video List */
.video-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.video-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-md);
  background-color: var(--color-cream);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.video-list-item:hover {
  background-color: rgba(166, 75, 42, 0.08);
}

.video-list-status {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.video-list-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Lessons: Video Detail */
.video-placeholder-box {
  background-color: var(--color-cream);
  border: 1px dashed rgba(220, 211, 196, 0.8);
  border-radius: var(--border-radius-md);
  padding: var(--space-6) var(--space-3);
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
}

/* To-Do List */
.todo-form {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.todo-form .form-input {
  flex: 1;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-cream);
}

.todo-item-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  min-width: 0;
}

.todo-checkbox {
  accent-color: var(--color-terracotta);
  flex-shrink: 0;
}

.todo-text {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.todo-text--done {
  text-decoration: line-through;
  color: var(--color-charcoal-light);
}

.todo-remove-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-charcoal-light);
  padding: 4px 6px;
}

.todo-remove-btn:hover {
  color: var(--color-error);
}

/* Weekly Reflection */
.weekly-reflection-prompt {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Daily Pulse Modal */
.pulse-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(var(--color-espresso-rgb), 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.pulse-modal-overlay.open {
  display: flex;
}

.pulse-modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  animation: fadeIn var(--transition-normal);
}

.pulse-greeting {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: var(--space-1);
}

/* 1-5 Number Scale (Daily Pulse Q3: mood / confidence) */
.pulse-scale {
  display: flex;
  gap: var(--space-2);
}

.pulse-scale-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  border: var(--border-espresso);
  background-color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-charcoal-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pulse-scale-btn.selected {
  background-color: var(--color-terracotta);
  color: var(--color-white);
  border-color: var(--color-terracotta);
}

/* Auto-Resizing Textareas (Daily Pulse focus, To-Do items, Weekly Reflection) */
.autosize-textarea {
  resize: none;
  overflow: hidden;
  line-height: 1.4;
  font-family: inherit;
  /* Floor so it never renders scrunched before autosize.js has measured it
     (e.g. the instant before JS runs, or a timing edge case JS didn't catch). */
  min-height: 44px;
}

/* Dashboard Badge Shelf: earned (filled) vs. locked (outline-only) — a
   deliberate contrast, not just a greyed-out duplicate of "earned". If the
   design direction ever moves to outline-only for all badges, that's a
   future change, not this spec. */
/* v6 SUPERSEDES v3: v3 specified outline-only icons, no fills, for both
   earned and locked badges. That's reversed — badges now reuse the landing
   page pillar icons in full color (same treatment as .pillar-icon), and
   locked badges are the same colored icon run through a greyscale filter
   with reduced opacity, not an outline. Ignore any v3-era "outline-only"
   comments found elsewhere as stale. */
.dashboard-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-round);
  background-color: rgba(166, 75, 42, 0.08);
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.dashboard-badge-icon.locked {
  filter: grayscale(1);
  opacity: 0.35;
}

.dashboard-badge-earned-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-gold);
  margin-top: -2px;
}

/* Commitment Statements — lightweight, read-only reminder cards */
.commitment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.commitment-card {
  background-color: var(--color-white);
  border: var(--border-stone);
  border-radius: var(--border-radius-md);
  padding: var(--space-3);
}

.commitment-text {
  font-style: italic;
  color: var(--color-charcoal-text);
  margin-bottom: var(--space-1);
}

.commitment-source {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin: 0;
}

/* Manager: Team Roster */
.team-roster-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.team-roster-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--border-radius-md);
  background-color: var(--color-cream);
  transition: background-color var(--transition-fast);
}

.team-roster-link:hover {
  background-color: rgba(166, 75, 42, 0.08);
}

.team-roster-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-roster-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-espresso);
  font-size: 0.95rem;
}

.team-roster-subtext {
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
}

/* Status Dot — the one deliberate exception to the platform's otherwise
   neutral tone (see manager-analytics.js). Reuses existing color tokens;
   no new colors introduced. */
.status-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-round);
}

.status-dot--green {
  background-color: var(--color-success);
}

.status-dot--yellow {
  background-color: var(--color-gold);
}

.status-dot--red {
  background-color: var(--color-error);
}

/* Manager Dashboard: Alerts */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.alert-item {
  padding: var(--space-3);
  border-radius: var(--border-radius-md);
  background-color: rgba(140, 59, 46, 0.08);
  border: 1px solid rgba(140, 59, 46, 0.2);
}

.alert-item-link {
  color: var(--color-charcoal-text);
  font-size: 0.9rem;
}

.alert-item-link:hover {
  color: var(--color-terracotta);
}

/* Manager Dashboard: Team Snapshot stat tiles */
.stat-card {
  text-align: center;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-terracotta);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

/* Manager Dashboard: Trend Charts */
.trend-chart-svg {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.trend-chart-axis {
  stroke: rgba(43, 31, 26, 0.15);
  stroke-width: 1;
}

.trend-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart-dot {
  cursor: pointer;
}

.trend-chart-axis-label {
  font-size: 9px;
  fill: var(--color-charcoal-light);
  font-family: var(--font-body);
}

.trend-chart-readout {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal-text);
  text-align: center;
  margin: var(--space-2) 0 0 0;
}

/* Manager Dashboard: Insight Callouts */
.insight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.insight-item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-cream);
  font-size: 0.9rem;
}

/* Manager Dashboard: Export */
.export-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-3);
}

.export-controls .form-group {
  margin-bottom: 0;
}

.export-controls .btn {
  white-space: nowrap;
}

/* Manager: Individual Crew Member Drill-Down */
.crew-detail-back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-2);
}

.crew-detail-back-link:hover {
  color: var(--color-terracotta);
}

/* Daily Pulse History — deliberately neutral: no success/error colors here,
   the manager reads the word, not a red/green signal. Same pill for
   Early/On Time/Late alike. */
.pulse-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pulse-log-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-cream);
}

.pulse-log-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

.pulse-log-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  color: var(--color-charcoal-text);
}

.pulse-log-focus {
  flex-basis: 100%;
  font-size: 0.85rem;
  margin: 0;
}

.pulse-log-rating {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
}

/* Today's Focus Callout — visually distinct from Badge Shelf/Shift Lead,
   small accent border so it reads as its own small card. */
.todays-focus-card {
  border-left: 3px solid var(--color-gold);
}

.todays-focus-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal-text);
  margin: 0;
}

/* Near-Term Milestone (Shift Lead card) */
.milestone-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin: var(--space-1) 0 0 0;
}

/* Warm empty/first-visit states — shared by Streak Tracker and Badge Shelf */
.dashboard-empty-state {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  text-align: center;
  padding: var(--space-3) 0;
  margin: 0;
}

/* Demo-only trigger buttons (v8 celebration scaffolding) — deliberately
   subdued so they never compete with real UI. Remove once real
   badge/streak unlock events exist to hook celebrations to instead. */
.demo-trigger-btn {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  background: none;
  border: 1px dashed rgba(220, 211, 196, 0.8);
  border-radius: var(--border-radius-md);
  padding: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-trigger-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Celebration Toast */
.celebrate-toast {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 340px;
  background-color: var(--color-white);
  border: var(--border-espresso);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
}

.celebrate-toast.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.celebrate-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.celebrate-message {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin: 0;
  flex: 1;
}

.celebrate-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-charcoal-light);
  padding: 4px;
}

.celebrate-particle {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: celebrateParticle 1.2s ease-out forwards;
}

.celebrate-particle--1 { top: -10px; left: 20%; animation-delay: 0.1s; }
.celebrate-particle--2 { top: -10px; left: 50%; animation-delay: 0.2s; }
.celebrate-particle--3 { top: -10px; left: 75%; animation-delay: 0.05s; }

@keyframes celebrateParticle {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(1.3); }
}

/* First-Login Walkthrough */
.walkthrough-modal {
  text-align: center;
}

.walkthrough-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.walkthrough-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
}

.walkthrough-dot.active {
  background-color: var(--color-terracotta);
}

.walkthrough-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.walkthrough-actions .btn {
  flex: 1;
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Manager: Program Status Report */
.report-chart-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.report-pie-svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  flex-shrink: 0;
}

.status-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.status-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
}

.status-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-round);
  flex-shrink: 0;
}

.status-legend-label {
  color: var(--color-charcoal-text);
  min-width: 90px;
}

.status-legend-count {
  font-weight: 700;
  color: var(--color-espresso);
}

.report-search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.report-search-controls .form-group {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.report-table-scroll {
  overflow-x: auto;
}

.report-summary-table,
.report-learner-table,
.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.report-summary-table th,
.report-summary-table td,
.report-learner-table th,
.report-learner-table td,
.roster-table th,
.roster-table td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border-stone);
  white-space: nowrap;
}

.report-summary-table th {
  color: var(--color-charcoal-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.report-summary-table td,
.report-summary-table th[scope="row"] {
  font-weight: 700;
  color: var(--color-espresso);
}

.report-learner-table th,
.roster-table th {
  color: var(--color-charcoal-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.report-learner-table a,
.roster-view-link {
  color: var(--color-terracotta);
  font-weight: 600;
}

.report-learner-empty {
  text-align: center;
  color: var(--color-charcoal-light);
  white-space: normal;
}

/* Team Roster: header bar (search, location, show-deactivated, add) */
.roster-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.roster-search-group {
  position: relative;
  flex: 1 1 220px;
}

.roster-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
  pointer-events: none;
}

.roster-search-group .form-input {
  padding-left: 34px;
}

.roster-location-select {
  flex: 0 0 auto;
  width: auto;
  color: var(--color-charcoal-light);
  cursor: not-allowed;
}

.roster-add-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  border: none;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.roster-add-btn:hover {
  background-color: var(--color-espresso);
  transform: translateY(-1px);
}

.roster-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.view-report-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-top: var(--space-1);
}

.view-report-link:hover {
  color: var(--color-espresso);
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--border-radius-round);
}

/* Invite Flow — locked fields, invite link display, pending-invite card */
.form-input[readonly] {
  background-color: var(--color-stone);
  color: var(--color-charcoal-light);
  cursor: default;
}

.dashboard-empty-state-text {
  margin-bottom: var(--space-2);
}

.invite-link-input {
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
  text-align: center;
}

.invite-pending-card {
  border-left: 3px solid var(--color-gold);
  margin-bottom: var(--space-4);
}

.invite-pending-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.invite-pending-controls .invite-link-input {
  flex: 1 1 260px;
  margin-bottom: 0;
  text-align: left;
}

/* Deactivate Crew Member — Account Access card + confirm modal */
.account-access-card {
  margin-top: var(--space-4);
}

.confirm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(var(--color-espresso-rgb), 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.confirm-modal-overlay.open {
  display: flex;
}

.confirm-modal {
  width: 100%;
  max-width: 420px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  animation: fadeIn var(--transition-normal);
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Deactivated crew — neutral, not a status color, per the platform's
   non-evaluative tone (see the status-dot comment near manager-analytics.js). */
.deactivated-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-charcoal-light);
  background-color: var(--color-stone);
  padding: 3px 10px;
  border-radius: var(--border-radius-round);
  flex-shrink: 0;
}

.roster-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  margin-bottom: var(--space-3);
  cursor: pointer;
}

/* Notification Bell (Manager Topbar) */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  color: var(--color-charcoal-light);
  margin-right: var(--space-3);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Same stroke weight, viewBox, and cap/join style as .sidebar-nav-icon, so
   this reads as the same icon set rather than a mismatched emoji glyph. */
.notification-bell-icon {
  width: 22px;
  height: 22px;
}

.notification-bell:hover {
  background-color: var(--color-cream);
  color: var(--color-terracotta);
}

.notification-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-error);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* Condensed Dashboard Home Summary */
.report-pie-svg--condensed {
  max-width: 140px;
}

.dashboard-summary-stats {
  flex: 1 1 260px;
}

.dashboard-summary-stats .stat-card {
  padding: var(--space-3);
}

.dashboard-summary-stats .stat-card-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Per-Pillar Completion Breakdown — shared by the condensed Dashboard Home
   card and the detailed Reports tab card. */
.pillar-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pillar-breakdown-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pillar-breakdown-label {
  flex: 0 0 180px;
  font-size: 0.85rem;
  color: var(--color-charcoal-text);
}

.pillar-breakdown-bar-track {
  flex: 1;
  height: 10px;
  border-radius: var(--border-radius-round);
  background-color: var(--color-stone);
  overflow: hidden;
}

.pillar-breakdown-bar-fill {
  height: 100%;
  background-color: var(--color-terracotta);
  border-radius: var(--border-radius-round);
}

.pillar-breakdown-percent {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-espresso);
}

/* Loading / Error / Empty States — shared across every real-data section.
   See src/js/section-state.js for the JS that toggles between these.
   .state-message reuses the exact visual values of the existing
   .dashboard-empty-state text convention (font-size 0.9rem, charcoal-light,
   space-3-ish padding) so it reads as the same language, just with room
   for an icon and an optional action button. Spinner uses linear/infinite
   timing rather than the project's usual fadeIn/transition-normal
   cubic-bezier — a continuous spin needs linear to look smooth; the
   reveal-easing curve would make it visibly stutter. */
@keyframes ptlSpin {
  to {
    transform: rotate(360deg);
  }
}

.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  text-align: center;
}

.state-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-stone);
  border-top-color: var(--color-terracotta);
  border-radius: 50%;
  animation: ptlSpin 0.8s linear infinite;
}

.state-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.state-message p {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  margin: 0;
  max-width: 320px;
}

.state-loading p {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  margin: 0;
}

/* Inline button-level spinner (auth forms, Daily Pulse submit) — smaller,
   sits inside the button next to its label rather than replacing a whole
   section, same ptlSpin animation. */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: ptlSpin 0.7s linear infinite;
  margin-right: var(--space-2);
  vertical-align: -2px;
}

/* Manager First-Login Welcome + Spotlight Tour — see manager-walkthrough.js.
   Welcome reuses the same full-cover overlay pattern as .confirm-modal-overlay.
   The tour overlay itself has no background — the dim comes entirely from
   .tour-spotlight's box-shadow "cutout" trick (a huge shadow radius fills
   the viewport everywhere except the spotlight box itself), so real page
   content stays fully legible inside the highlighted area. */
.tour-welcome-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(var(--color-espresso-rgb), 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 260;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.tour-welcome-overlay.open {
  display: flex;
}

.tour-welcome-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: var(--border-espresso);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  text-align: center;
  animation: fadeIn var(--transition-normal);
}

.tour-welcome-card h2 {
  margin: var(--space-2) 0 var(--space-3);
}

.tour-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.tour-overlay.open {
  display: block;
}

.tour-spotlight {
  position: fixed;
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 0 9999px rgba(var(--color-espresso-rgb), 0.72);
  border: 2px solid var(--color-gold);
  transition: top 250ms ease, left 250ms ease, width 250ms ease, height 250ms ease;
  pointer-events: none;
}

.tour-tooltip {
  position: fixed;
  width: 280px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  pointer-events: auto;
  animation: fadeIn var(--transition-normal);
}

.tour-tooltip-text {
  font-size: 0.95rem;
  color: var(--color-charcoal-text);
  margin: 0 0 var(--space-3);
}

.tour-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.tour-step-counter {
  font-size: 0.75rem;
  color: var(--color-charcoal-light);
  white-space: nowrap;
}

.tour-tooltip-actions {
  display: flex;
  gap: var(--space-1);
}

.tour-tooltip-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}
