/* =============================================================
   Special Learning Component Library
   Version: 1.0.0 | Phase 0 | 2026-03-30

   12 component types. Each standalone, no inter-dependencies.
   Requires sl-design-system.css loaded first (provides tokens).
   Mobile-first: base styles = mobile, min-width queries = larger.

   Components:
   1. Buttons (primary, secondary, ghost, CTA)
   2. Cards (standard, audience, product)
   3. Navigation (header, mega menu)
   4. Hero sections (primary, page)
   5. Wave separators
   6. Comparison table
   7. Testimonial cards
   8. Stats bar
   9. FAQ accordion
   10. Credential badge strip
   11. AI Concierge bar
   12. Sticky BYO bar (mobile)
   ============================================================= */


/* =============================================================
   1. BUTTONS
   ============================================================= */

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sl-space-sm);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-base);
  font-weight: var(--sl-font-semibold);
  line-height: 1;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: var(--sl-radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--sl-transition-base),
              color var(--sl-transition-base),
              box-shadow var(--sl-transition-base),
              transform var(--sl-transition-base);
  -webkit-appearance: none;
}

.sl-btn:focus-visible {
  outline: 2px solid var(--sl-deep-plum);
  outline-offset: 2px;
}

/* Primary: Midnight Plum background, white text */
.sl-btn-primary {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
}

.sl-btn-primary:hover {
  background: #443054;
  text-decoration: none;
  color: var(--sl-text-on-dark);
}

.sl-btn-primary:active {
  background: #2a1833;
}

/* Secondary: Outlined, deep plum border */
.sl-btn-secondary {
}

/* Secondary on dark backgrounds: ensure WCAG contrast */
.sl-dark .sl-btn-secondary, .sl-hero .sl-btn-secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.sl-dark .sl-btn-secondary:hover, .sl-hero .sl-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
}

.sl-btn-secondary-placeholder {
  background: transparent;
  color: var(--sl-deep-plum);
  border: 2px solid var(--sl-deep-plum);
}

.sl-btn-secondary:hover {
  background: var(--sl-warm-cream);
  text-decoration: none;
  color: var(--sl-deep-plum);
}

.sl-btn-secondary:active {
  background: var(--sl-warm-beige);
}

/* Ghost: Text only with underline on hover */
.sl-btn-ghost {
  background: transparent;
  color: var(--sl-deep-plum);
  padding: 8px 16px;
}

.sl-btn-ghost:hover {
  text-decoration: underline;
  color: var(--sl-deep-plum);
}

/* CTA: Large featured button for hero sections */
.sl-btn-cta {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  font-size: var(--sl-text-lg);
  font-weight: var(--sl-font-bold);
  padding: 16px 32px;
  min-height: 52px;
}

.sl-btn-cta:hover {
  background: #443054;
  text-decoration: none;
  color: var(--sl-text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--sl-shadow-md);
}

.sl-btn-cta:active {
  background: #2a1833;
  transform: translateY(0);
}

/* Button on dark backgrounds */
.sl-btn-on-dark {
  background: var(--sl-warm-cream);
  color: var(--sl-midnight-plum);
  font-weight: var(--sl-font-bold);
}

.sl-btn-on-dark:hover {
  background: #FFFFFF;
  text-decoration: none;
  color: var(--sl-midnight-plum);
}


/* =============================================================
   2. CARDS
   ============================================================= */

/* Standard Card */
.sl-card {
  background: #FFFFFF;
  border: 1px solid var(--sl-border-light);
  border-radius: var(--sl-radius-lg);
  padding: var(--sl-space-lg);
  transition: box-shadow var(--sl-transition-base),
              transform var(--sl-transition-base);
}

.sl-card:hover {
  box-shadow: var(--sl-shadow-hover);
  transform: translateY(-2px);
}

/* Audience Card ("I'm a..." section) */
.sl-audience-card {
  background: var(--sl-warm-beige);
  border-radius: var(--sl-radius-lg);
  padding: var(--sl-space-xl);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--sl-transition-base),
              transform var(--sl-transition-base);
}

.sl-audience-card:hover {
  box-shadow: var(--sl-shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.sl-audience-card .sl-audience-icon {
  width: 48px;
  height: 48px;
  color: var(--sl-deep-plum);
  margin: 0 auto var(--sl-space-md);
}

.sl-audience-card h3 {
  color: var(--sl-deep-plum);
  font-size: var(--sl-text-xl);
  font-weight: var(--sl-font-bold);
  margin-bottom: var(--sl-space-sm);
}

.sl-audience-card p {
  color: var(--sl-text-muted);
  font-size: var(--sl-text-sm);
  margin-bottom: var(--sl-space-md);
}

.sl-audience-card .sl-cta-link {
  color: var(--sl-deep-plum);
  font-weight: var(--sl-font-semibold);
  font-size: var(--sl-text-sm);
}

/* Product Card */
.sl-product-card {
  background: #FFFFFF;
  border: 1px solid var(--sl-border-light);
  border-radius: var(--sl-radius-lg);
  padding: var(--sl-space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--sl-transition-base),
              transform var(--sl-transition-base);
}

.sl-product-card:hover {
  box-shadow: var(--sl-shadow-hover);
  transform: translateY(-2px);
}

.sl-product-card .sl-product-title {
  font-size: var(--sl-text-xl);
  font-weight: var(--sl-font-bold);
  color: var(--sl-deep-plum);
  margin-bottom: var(--sl-space-sm);
}

.sl-product-card .sl-product-description {
  flex-grow: 1;
  color: var(--sl-text-primary);
  margin-bottom: var(--sl-space-md);
  font-size: var(--sl-text-sm);
  line-height: var(--sl-leading-relaxed);
}

.sl-product-card .sl-product-price {
  font-size: var(--sl-text-2xl);
  font-weight: var(--sl-font-bold);
  color: var(--sl-midnight-plum);
}

.sl-product-card .sl-product-period {
  font-size: var(--sl-text-sm);
  color: var(--sl-text-muted);
  font-weight: var(--sl-font-regular);
}

.sl-badge-recommended {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  padding: 4px 12px;
  border-radius: var(--sl-radius-full);
  font-size: var(--sl-text-xs);
  font-weight: var(--sl-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =============================================================
   3. NAVIGATION
   ============================================================= */

/* Desktop Nav Header */
.sl-nav-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--sl-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--sl-nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--sl-space-xl);
}

.sl-nav-header.sl-nav-scrolled {
  box-shadow: var(--sl-shadow-md);
}

.sl-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--sl-max-width);
  margin: 0 auto;
}

.sl-nav-logo img {
  height: 40px;
}

.sl-nav-items {
  flex-shrink: 1;
  display: none;
  gap: var(--sl-space-lg);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .sl-nav-items {
  flex-shrink: 1;
    display: flex;
  }
}

.sl-nav-item {
  color: var(--sl-deep-plum);
  font-family: var(--sl-font-body);
  font-weight: var(--sl-font-semibold);
  font-size: var(--sl-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sl-space-sm) 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  background: none;
  border: none;
}

.sl-nav-item:hover {
  color: var(--sl-midnight-plum);
  text-decoration: none;
}

.sl-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sl-dusty-mauve);
  transition: width var(--sl-transition-base);
}

.sl-nav-item:hover::after,
.sl-nav-item[aria-expanded="true"]::after {
  width: 100%;
}

.sl-page .sl-nav-cta,
.sl-nav-cta {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  padding: 10px 20px;
  border-radius: var(--sl-radius-md);
  font-family: var(--sl-font-body);
  font-weight: var(--sl-font-bold);
  font-size: var(--sl-text-sm);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background var(--sl-transition-base);
}

.sl-page .sl-nav-cta:hover,
.sl-nav-cta:hover {
  background: #443054;
  text-decoration: none;
  color: var(--sl-text-on-dark);
}

/* Hamburger (mobile) */
.sl-nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sl-space-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .sl-nav-hamburger {
    display: none;
  }
}

.sl-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sl-deep-plum);
  border-radius: 1px;
  transition: transform var(--sl-transition-base),
              opacity var(--sl-transition-base);
}

.sl-nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sl-nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sl-nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mega Menu */
.sl-mega-menu {
  position: absolute;
  top: var(--sl-nav-height);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 2px solid var(--sl-dusty-mauve);
  box-shadow: var(--sl-shadow-lg);
  padding: var(--sl-space-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sl-space-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--sl-transition-slow),
              visibility var(--sl-transition-slow),
              transform var(--sl-transition-slow);
  z-index: 99;
}

.sl-mega-menu.sl-mega-menu-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sl-mega-menu-section h4 {
  color: var(--sl-deep-plum);
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sl-space-md);
  padding-bottom: var(--sl-space-sm);
  border-bottom: 1px solid var(--sl-dusty-mauve);
}

.sl-mega-menu-link {
  display: block;
  color: var(--sl-text-primary);
  padding: var(--sl-space-xs) 0;
  font-size: var(--sl-text-sm);
  text-decoration: none;
  transition: color var(--sl-transition-fast);
}

.sl-mega-menu-link:hover {
  color: var(--sl-deep-plum);
  text-decoration: none;
}

/* Mobile Menu (slide-in) */
.sl-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--sl-transition-slow);
  overflow-y: auto;
  padding: var(--sl-space-xl);
  padding-bottom: 100px;
}

.sl-mobile-menu.sl-mobile-menu-open {
  transform: translateX(0);
}

.sl-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(53, 32, 64, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sl-transition-slow),
              visibility var(--sl-transition-slow);
}

.sl-mobile-menu-overlay.sl-mobile-menu-overlay-visible {
  opacity: 1;
  visibility: visible;
}

.sl-mobile-menu-item {
  display: block;
  width: 100%;
  padding: var(--sl-space-md) 0;
  color: var(--sl-deep-plum);
  font-weight: var(--sl-font-semibold);
  font-size: var(--sl-text-base);
  text-decoration: none;
  border-bottom: 1px solid var(--sl-border-light);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sl-font-body);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.sl-mobile-menu-cta {
  display: block;
  width: 100%;
  margin-top: var(--sl-space-xl);
  text-align: center;
}


/* =============================================================
   4. HERO SECTIONS
   ============================================================= */

/* Primary Hero (Homepage) */
.sl-hero-primary {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  padding: var(--sl-space-2xl) var(--sl-space-md);
  min-height: auto;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .sl-hero-primary {
    padding: var(--sl-space-4xl) var(--sl-space-xl);
    min-height: 70vh;
  }
}

.sl-hero-primary h1 {
  font-size: var(--sl-text-3xl);
  font-weight: var(--sl-font-bold);
  line-height: var(--sl-leading-tight);
  max-width: 600px;
  margin-bottom: var(--sl-space-lg);
  color: var(--sl-text-on-dark);
}

@media (min-width: 768px) {
  .sl-hero-primary h1 {
    font-size: var(--sl-text-5xl);
  }
}

.sl-hero-subheadline {
  font-size: var(--sl-text-base);
  color: var(--sl-text-on-dark-muted);
  max-width: 500px;
  margin-bottom: var(--sl-space-xl);
  line-height: var(--sl-leading-normal);
}

@media (min-width: 768px) {
  .sl-hero-subheadline {
    font-size: var(--sl-text-lg);
  }
}

.sl-hero-actions {
  display: flex;
  gap: var(--sl-space-md);
  flex-wrap: wrap;
}

/* Page Hero (Audience/Interior pages) */
.sl-hero-page {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  padding: var(--sl-space-2xl) var(--sl-space-md);
  border-radius: 0 0 var(--sl-radius-xl) var(--sl-radius-xl);
}

@media (min-width: 768px) {
  .sl-hero-page {
    padding: var(--sl-space-3xl) var(--sl-space-xl);
  }
}

.sl-hero-page h1 {
  font-size: var(--sl-text-3xl);
  font-weight: var(--sl-font-bold);
  margin-bottom: var(--sl-space-md);
  color: var(--sl-text-on-dark);
}

@media (min-width: 768px) {
  .sl-hero-page h1 {
    font-size: var(--sl-text-4xl);
  }
}

.sl-hero-page .sl-hero-subheadline {
  max-width: 700px;
}


/* =============================================================
   5. WAVE SEPARATORS
   ============================================================= */

.sl-wave-separator {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.sl-wave-separator svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Predefined wave fill variants */
.sl-wave-to-cream svg path { fill: var(--sl-warm-cream); }
.sl-wave-to-white svg path { fill: var(--sl-white); }
.sl-wave-to-plum svg path { fill: var(--sl-midnight-plum); }
.sl-wave-to-mauve svg path { fill: var(--sl-dusty-mauve); }


/* =============================================================
   6. COMPARISON TABLE
   ============================================================= */

.sl-compare-table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sl-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.sl-compare-table th {
  background: var(--sl-warm-cream);
  color: var(--sl-deep-plum);
  font-weight: var(--sl-font-bold);
  font-family: var(--sl-font-heading);
  padding: var(--sl-space-md);
  text-align: center;
  border-bottom: 2px solid var(--sl-dusty-mauve);
  font-size: var(--sl-text-sm);
  position: sticky;
  top: 0;
  z-index: 1;
}

.sl-compare-table th.sl-compare-recommended {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  border-radius: var(--sl-radius-lg) var(--sl-radius-lg) 0 0;
}

.sl-compare-table th:first-child {
  text-align: left;
}

.sl-compare-table td {
  padding: var(--sl-space-md);
  text-align: center;
  border-bottom: 1px solid var(--sl-border-light);
  font-size: var(--sl-text-sm);
}

.sl-compare-table td:first-child {
  text-align: left;
  font-weight: var(--sl-font-semibold);
  color: var(--sl-deep-plum);
}

.sl-compare-table td.sl-compare-recommended-col {
  background: rgba(53, 32, 64, 0.03);
}

.sl-compare-check {
  color: var(--sl-success);
  font-size: var(--sl-text-lg);
}

.sl-compare-x {
  color: var(--sl-text-muted);
  opacity: 0.4;
  font-size: var(--sl-text-lg);
}


/* =============================================================
   7. TESTIMONIAL CARDS
   ============================================================= */

.sl-testimonial-card {
  background: #FFFFFF;
  border-radius: var(--sl-radius-lg);
  padding: var(--sl-space-xl);
  box-shadow: var(--sl-shadow-sm);
}

.sl-testimonial-quote {
  font-size: var(--sl-text-base);
  font-style: italic;
  color: var(--sl-text-primary);
  line-height: var(--sl-leading-relaxed);
  margin-bottom: var(--sl-space-lg);
  margin-top: 0;
  position: relative;
  padding-left: var(--sl-space-lg);
  border-left: 3px solid var(--sl-dusty-mauve);
}

@media (min-width: 768px) {
  .sl-testimonial-quote {
    font-size: var(--sl-text-lg);
  }
}

.sl-testimonial-attribution {
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-font-semibold);
  color: var(--sl-deep-plum);
}

.sl-testimonial-role {
  font-size: var(--sl-text-xs);
  color: var(--sl-text-muted);
}


/* =============================================================
   8. STATS BAR
   ============================================================= */

.sl-stats-bar {
  background: var(--sl-dusty-mauve);
  padding: var(--sl-space-xl) var(--sl-space-md);
  display: flex;
  justify-content: center;
  gap: var(--sl-space-xl);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .sl-stats-bar {
    padding: var(--sl-space-2xl) var(--sl-space-xl);
    gap: var(--sl-space-3xl);
  }
}

.sl-stat-item {
  text-align: center;
}

.sl-stat-number {
  font-size: var(--sl-text-3xl);
  font-weight: var(--sl-font-bold);
  color: var(--sl-midnight-plum);
  font-family: var(--sl-font-heading);
}

@media (min-width: 768px) {
  .sl-stat-number {
    font-size: var(--sl-text-4xl);
  }
}

.sl-stat-label {
  font-size: var(--sl-text-sm);
  color: var(--sl-deep-plum);
  font-weight: var(--sl-font-medium);
  margin-top: var(--sl-space-xs);
}


/* =============================================================
   9. FAQ ACCORDION
   ============================================================= */

.sl-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.sl-faq-item {
  border-bottom: 1px solid var(--sl-border-light);
}

.sl-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sl-space-lg) 0;
  cursor: pointer;
  font-weight: var(--sl-font-semibold);
  color: var(--sl-deep-plum);
  font-size: var(--sl-text-base);
  font-family: var(--sl-font-body);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  min-height: 44px;
}

.sl-faq-question:hover {
  color: var(--sl-midnight-plum);
}

.sl-faq-icon {
  font-size: var(--sl-text-xl);
  color: var(--sl-dusty-mauve);
  transition: transform var(--sl-transition-base);
  flex-shrink: 0;
  margin-left: var(--sl-space-md);
  font-style: normal;
}

.sl-faq-item[data-open="true"] .sl-faq-icon {
  transform: rotate(45deg);
}

.sl-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--sl-transition-slow);
  color: var(--sl-text-primary);
  line-height: var(--sl-leading-relaxed);
  font-size: var(--sl-text-sm);
}

.sl-faq-item[data-open="true"] .sl-faq-answer {
  max-height: 500px;
  padding-bottom: var(--sl-space-lg);
}


/* =============================================================
   10. CREDENTIAL BADGE STRIP
   ============================================================= */

.sl-credential-badges {
  display: flex;
  justify-content: center;
  gap: var(--sl-space-lg);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--sl-space-xl) 0;
}

@media (min-width: 768px) {
  .sl-credential-badges {
    gap: var(--sl-space-xl);
    padding: var(--sl-space-2xl) 0;
  }
}

.sl-credential-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sl-space-xs);
}

.sl-credential-badge img {
  height: 40px;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .sl-credential-badge img {
    height: 48px;
  }
}

.sl-credential-badge span {
  font-size: var(--sl-text-xs);
  color: var(--sl-text-muted);
  font-weight: var(--sl-font-medium);
}


/* =============================================================
   11. AI CONCIERGE BAR
   ============================================================= */

.sl-concierge-bar {
  background: var(--sl-warm-cream);
  padding: var(--sl-space-xl) var(--sl-space-md);
  text-align: center;
  border-radius: var(--sl-radius-xl);
  margin: var(--sl-space-xl) 0;
}

@media (min-width: 768px) {
  .sl-concierge-bar {
    padding: var(--sl-space-2xl);
  }
}

.sl-concierge-prompt {
  font-size: var(--sl-text-base);
  color: var(--sl-deep-plum);
  font-weight: var(--sl-font-semibold);
  margin-bottom: var(--sl-space-md);
}

@media (min-width: 768px) {
  .sl-concierge-prompt {
    font-size: var(--sl-text-lg);
  }
}

.sl-concierge-input-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 600px;
}

.sl-concierge-input {
  width: 100%;
  padding: var(--sl-space-md) var(--sl-space-lg);
  padding-right: 52px;
  border: 2px solid var(--sl-dusty-mauve);
  border-radius: var(--sl-radius-full);
  font-size: var(--sl-text-base);
  font-family: var(--sl-font-body);
  color: var(--sl-text-primary);
  outline: none;
  transition: border-color var(--sl-transition-base);
  background: #FFFFFF;
}

.sl-concierge-input:focus {
  border-color: var(--sl-deep-plum);
}

.sl-concierge-input::placeholder {
  color: var(--sl-text-muted);
  font-style: italic;
}

.sl-concierge-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sl-transition-base);
}

.sl-concierge-submit:hover {
  background: #443054;
}


/* =============================================================
   12. STICKY BYO BAR (Mobile)
   ============================================================= */

.sl-sticky-byo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--sl-midnight-plum);
  padding: var(--sl-space-sm) var(--sl-space-md);
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.sl-sticky-byo.sl-sticky-byo-visible {
  display: flex;
}

@media (min-width: 768px) {
  .sl-sticky-byo.sl-sticky-byo-visible {
    display: none;
  }
}

.sl-sticky-byo-text {
  color: var(--sl-text-on-dark);
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-font-semibold);
}

.sl-sticky-byo-price {
  color: var(--sl-text-on-dark-muted);
  font-size: var(--sl-text-xs);
}

.sl-sticky-byo .sl-btn {
  background: var(--sl-warm-cream);
  color: var(--sl-midnight-plum);
  font-weight: var(--sl-font-bold);
  padding: 8px 16px;
  border-radius: var(--sl-radius-md);
  font-size: var(--sl-text-sm);
}

.sl-sticky-byo .sl-btn:hover {
  background: #FFFFFF;
}


/* =============================================================
   TRUST STRIP (migrated from sl-main.css, tokenized)
   ============================================================= */

.sl-trust-strip {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  font-family: var(--sl-font-body);
  font-size: var(--sl-text-xs);
  font-weight: var(--sl-font-medium);
  padding: var(--sl-space-sm) 0;
  text-align: center;
  width: 100%;
  z-index: 101;
}

@media (min-width: 768px) {
  .sl-trust-strip {
    font-size: var(--sl-text-sm);
  }
}

.sl-trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  max-width: var(--sl-max-width);
  margin: 0 auto;
  padding: 0 var(--sl-space-lg);
  overflow-x: auto;
}

.sl-trust-strip-item {
  white-space: nowrap;
  padding: 0 var(--sl-space-md);
}

.sl-trust-strip-item a {
  color: var(--sl-text-on-dark);
  text-decoration: underline;
}

.sl-trust-strip-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  height: 14px;
  flex-shrink: 0;
}


/* =============================================================
   FOOTER
   ============================================================= */

.sl-footer {
  background: var(--sl-midnight-plum);
  color: var(--sl-text-on-dark);
  padding: var(--sl-space-3xl) var(--sl-space-md);
}

@media (min-width: 768px) {
  .sl-footer {
    padding: var(--sl-space-3xl) var(--sl-space-xl);
  }
}

.sl-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sl-space-xl);
  max-width: var(--sl-max-width);
  margin: 0 auto;
}

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

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

.sl-footer h4 {
  color: var(--sl-text-on-dark);
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sl-space-md);
}

.sl-footer a {
  color: var(--sl-text-on-dark-muted);
  font-size: var(--sl-text-sm);
  text-decoration: none;
  display: block;
  padding: var(--sl-space-xs) 0;
  transition: color var(--sl-transition-fast);
}

.sl-footer a:hover {
  color: var(--sl-text-on-dark);
  text-decoration: none;
}

.sl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--sl-space-2xl);
  padding-top: var(--sl-space-xl);
  text-align: center;
  font-size: var(--sl-text-xs);
  color: var(--sl-text-on-dark-muted);
  max-width: var(--sl-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sl-footer-bottom a {
  display: inline;
  padding: 0;
}

/* =============================================================
   UTILITY NAV (Login + Cart)
   ============================================================= */

.sl-nav-utils {
  display: none;
  align-items: center;
  gap: var(--sl-space-md);
  margin-left: var(--sl-space-lg);
}

@media (min-width: 1024px) {
  .sl-nav-utils {
    display: flex;
  }
}

.sl-page .sl-nav-util-link,
.sl-nav-util-link {
  color: var(--sl-deep-plum);
  text-decoration: none;
  font-size: var(--sl-text-sm);
  font-weight: var(--sl-font-semibold);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sl-space-xs) var(--sl-space-sm);
  border-radius: var(--sl-radius-sm);
  transition: background var(--sl-transition-fast), color var(--sl-transition-fast);
}

.sl-page .sl-nav-util-link:hover,
.sl-nav-util-link:hover {
  background: var(--sl-warm-cream);
  color: var(--sl-midnight-plum);
  text-decoration: none;
}

.sl-nav-util-link i {
  font-size: 1rem;
}

.sl-nav-util-label {
  font-family: var(--sl-font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}


/* =============================================================
   FIX: .sl-page a specificity override on buttons
   QA Review fix 2026-04-02. .sl-page a (0,1,1) overrides
   .sl-btn-primary (0,1,0). Adding .sl-page prefix (0,2,0) wins.
   ============================================================= */

/* Buttons on dark backgrounds must show white text */
.sl-page .sl-btn-primary,
.sl-page .sl-btn-primary:hover,
.sl-page .sl-btn-cta,
.sl-page .sl-btn-cta:hover,
.sl-page a.sl-btn-primary,
.sl-page a.sl-btn-cta {
  color: var(--sl-text-on-dark);
}

/* Buttons on dark with cream background */
.sl-page .sl-btn-on-dark,
.sl-page .sl-btn-on-dark:hover,
.sl-page a.sl-btn-on-dark {
  color: var(--sl-midnight-plum);
}

/* Secondary/ghost buttons keep deep plum */
.sl-page .sl-btn-secondary,
.sl-page .sl-btn-secondary:hover,
.sl-page a.sl-btn-secondary,
.sl-page .sl-btn-ghost,
.sl-page a.sl-btn-ghost {
  color: var(--sl-deep-plum);
}

/* Nav links inside .sl-page should not be overridden */
.sl-page nav a,
.sl-page header a {
  color: inherit;
}

/* =============================================================
   FIX: 148px gap between hero and content sections
   QA Review fix 2026-04-02. sl-homepage-section had no CSS.
   Hero bottom padding + rounded corners created large visual gap.
   ============================================================= */

.sl-homepage-section {
  padding: var(--sl-space-2xl) var(--sl-space-md);
}

@media (min-width: 768px) {
  .sl-homepage-section {
    padding: var(--sl-space-3xl) var(--sl-space-xl);
  }
}

/* Pull first section closer to hero by reducing hero bottom padding */
.sl-hero-page {
  padding-bottom: var(--sl-space-xl);
}

@media (min-width: 768px) {
  .sl-hero-page {
    padding-bottom: var(--sl-space-2xl);
  }
}

/* =============================================================
   FIX: Mobile touch targets (WCAG 2.5.8)
   QA Review fix 2026-04-03. Footer and nav links under 44x44px.
   ============================================================= */

@media (max-width: 768px) {
  /* Footer links need larger touch targets on mobile */
  .sl-footer a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 4px;
  }

  /* Nav mobile menu links */
  .sl-mobile-menu a,
  .sl-mobile-sub a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Make tables scroll gracefully */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* WCAG fix: secondary buttons on dark backgrounds (Task 18) */
.sl-dark .sl-btn-secondary,
.sl-hero .sl-btn-secondary,
.btn-secondary[style*="3A1539"] {
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}
.sl-dark .sl-btn-secondary:hover,
.sl-hero .sl-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF !important;
}


/* Task 23: Additional button contrast fixes for RBT/PDU pages
   QA found 14 buttons with invisible text. Generic .sl-btn and
   hero/CTA section links on dark backgrounds need white text. */
.sl-page .sl-btn a,
.sl-page a.sl-btn,
.sl-page .hero-cta a,
.sl-page .cta-section a,
.sl-page .cta-section .sl-btn,
.sl-page [style*="background"] a.sl-btn-primary,
.sl-page [style*="background"] a.sl-btn {
  color: #fff !important;
}
.sl-page .sl-btn a:hover,
.sl-page a.sl-btn:hover,
.sl-page .hero-cta a:hover,
.sl-page .cta-section a:hover {
  color: #fff !important;
  opacity: 0.9;
}

/* Fix: btn-cta + btn-on-dark combo: cream bg needs dark text, not white */
.sl-page a.sl-btn-cta.sl-btn-on-dark,
.sl-page a.sl-btn-cta.sl-btn-on-dark:hover,
.sl-page .sl-btn-cta.sl-btn-on-dark {
  color: var(--sl-midnight-plum) !important;
  background: var(--sl-warm-cream) !important;
}
.sl-page a.sl-btn-cta.sl-btn-on-dark:hover {
  background: #FFFFFF !important;
}

/* Fix: Subscribe buttons on lead capture forms need dark bg, not mauve */
.sl-page form button[type=submit],
.sl-page .sl-lead-form button {
  background: var(--sl-midnight-plum) !important;
  color: #FFFFFF !important;
}
.sl-page form button[type=submit]:hover,
.sl-page .sl-lead-form button:hover {
  background: var(--sl-deep-plum) !important;
}

/* Fix: btn-on-dark inside dark sections needs dark text override */
.sl-vcat-banner a.sl-btn-on-dark,
.sl-hero-primary a.sl-btn-on-dark,
[class*=plum] a.sl-btn-on-dark {
  color: var(--sl-midnight-plum) !important;
  background: var(--sl-warm-cream) !important;
}
.sl-vcat-banner a.sl-btn-on-dark:hover,
.sl-hero-primary a.sl-btn-on-dark:hover {
  background: #FFFFFF !important;
}

/* Fix: cta-btn-primary inside cta-section has white bg, needs dark text (overrides Task 23 white rule) */
.sl-page .cta-section a.cta-btn-primary,
.sl-page .cta-section .cta-btn-primary {
  color: var(--sl-deep-plum) !important;
  background: #FFFFFF !important;
}
.sl-page .cta-section a.cta-btn-primary:hover {
  color: var(--sl-midnight-plum) !important;
}

/* Fix: btn-on-dark inside highlight cards (resources page) */
.sl-page .sl-highlight-card a.sl-btn-on-dark,
.sl-page .sl-highlight-card .sl-btn-on-dark {
  color: var(--sl-midnight-plum) !important;
  background: var(--sl-warm-cream) !important;
}
.sl-page .sl-highlight-card a.sl-btn-on-dark:hover {
  background: #FFFFFF !important;
}

/* Forms */
.sl-form label {
  display: block;
  font-weight: 600;
  color: #352040;
  margin-bottom: 4px;
  font-size: 14px;
}
.sl-form input[type=text],
.sl-form input[type=email],
.sl-form input[type=tel],
.sl-form select,
.sl-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8DDD4;
  border-radius: 8px;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  color: #2D2D2D;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.sl-form input:focus,
.sl-form select:focus,
.sl-form textarea:focus {
  border-color: #5B2E5A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91,46,90,0.1);
}
.sl-form textarea {
  resize: vertical;
  min-height: 120px;
}
.sl-form .form-group {
  margin-bottom: 16px;
}
.sl-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .sl-form .form-row { grid-template-columns: 1fr; }
}
.sl-form button[type=submit] {
  display: block;
  width: 100%;
  padding: 14px;
  background: #352040;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.sl-form button[type=submit]:hover {
  background: #5B2E5A;
}
