/* ==========================================================================
   BSA DIGITAL LABS: Preline SaaS Startup Design System
   Tailwind CSS & Preline UI Architecture with Plus Jakarta Sans
   ========================================================================== */

:root {
  /* Brand Tokens: Monochrome & Electric Lime/Mint */
  --bg-primary: #09090B;
  --bg-card: #121215;
  --bg-card-hover: #18181B;
  --brand-primary: #10F58A;
  --brand-hover: #0ee07c;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --border-subtle: #27272A;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base resets & typography */
html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-height: 100vh;
  background-color: #09090B;
  color: #E4E4E7;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid #10F58A;
  outline-offset: 2px;
}

/* ==========================================================================
   Mobile Drawer Transitions
   ========================================================================== */
#mobileDrawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileDrawer.open {
  transform: translateX(0) !important;
}

/* ==========================================================================
   FAQ Accordions (Preline HSAccordion Smooth Motion)
   ========================================================================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: #10F58A;
}

.faq-item.open {
  border-color: rgba(16, 245, 138, 0.35);
  background: rgba(18, 18, 21, 0.9);
}

/* ==========================================================================
   Interactive Checklist (Brand Green #10F58A)
   ========================================================================== */
.eligibility-check {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid #3F3F46;
  border-radius: 0.375rem;
  background-color: #09090B;
  display: inline-grid;
  place-content: center;
  margin-top: 0.125rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease-in-out;
  accent-color: #10F58A;
}

.eligibility-check:hover {
  border-color: #71717A;
}

.eligibility-check:checked {
  background-color: #10F58A;
  border-color: #10F58A;
}

.eligibility-check:checked::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background-color: #09090B;
}

.eligibility-check:focus-visible {
  outline: 2px solid #10F58A;
  outline-offset: 2px;
}

/* Card highlight when checked */
label:has(.eligibility-check:checked) {
  border-color: rgba(16, 245, 138, 0.35);
  background: rgba(18, 18, 21, 0.9);
}

.form-feedback.success {
  display: block !important;
  background: rgba(16, 245, 138, 0.12);
  border: 1px solid rgba(16, 245, 138, 0.35);
  color: #10F58A;
}

.form-feedback.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #F87171;
}

.form-feedback.info {
  display: block !important;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93C5FD;
}

/* Active Nav Link Highlighting */
.nav-desktop .nav-item.active {
  color: #10F58A;
}

/* Selection */
::selection {
  background: #10F58A;
  color: #09090B;
}
