/* ============================================================
   AccelaStudy ACES — Design System (HSL tokens, Tailwind CDN)
   Renkara Media Group, Inc.
   ============================================================ */

:root {
  --background: 210 33% 98%;
  --foreground: 217 48% 20%;
  --card: 0 0% 100%;
  --card-foreground: 217 48% 20%;
  --muted: 210 20% 95%;
  --muted-foreground: 216 14% 40%;
  --primary: 217 48% 20%;
  --primary-foreground: 0 0% 100%;
  --accent: 207 55% 40%;
  --accent-foreground: 0 0% 100%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --destructive: 0 72% 51%;
  --success: 160 84% 29%;
  --warning: 37 92% 44%;
  --navy: 217 48% 20%;
  --blue: 207 55% 40%;
  --radius: 0.625rem;
}

.dark {
  --background: 220 20% 8%;
  --foreground: 210 33% 95%;
  --card: 220 18% 12%;
  --card-foreground: 210 33% 95%;
  --muted: 220 16% 16%;
  --muted-foreground: 216 14% 65%;
  --primary: 210 33% 95%;
  --primary-foreground: 220 20% 8%;
  --accent: 207 55% 50%;
  --accent-foreground: 0 0% 100%;
  --border: 220 16% 20%;
  --input: 220 16% 20%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* ---------- Utility gradients ---------- */
.text-gradient {
  background: linear-gradient(135deg, hsl(var(--navy)) 0%, hsl(var(--blue)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dark .text-gradient {
  background: linear-gradient(135deg, hsl(210 33% 95%) 0%, hsl(207 55% 65%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.bg-gradient-accent {
  background: linear-gradient(135deg, hsl(var(--navy)) 0%, hsl(var(--blue)) 100%);
}
.bg-gradient-accent-light {
  background: linear-gradient(135deg, hsla(var(--navy) / 0.05) 0%, hsla(var(--blue) / 0.05) 100%);
}
.dark .bg-gradient-accent-light {
  background: linear-gradient(135deg, hsla(var(--blue) / 0.08) 0%, hsla(var(--navy) / 0.08) 100%);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.4);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.6);
}

/* ---------- Cards ---------- */
.as-card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.as-card:hover {
  border-color: hsl(var(--accent));
  box-shadow: 0 8px 30px hsla(var(--navy) / 0.08);
  transform: translateY(-2px);
}

/* ---------- Focus rings ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 2px;
}

/* ---------- Hero canvas ---------- */
.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; padding: 8px 16px;
  background: hsl(var(--navy)); color: #fff; font-size: 14px; font-weight: 600; border-radius: 4px;
  z-index: 9999; outline: 2px solid hsl(var(--accent));
}

/* ---------- Tier Badges ---------- */
.tier-trainee      { background: hsla(215 16% 60% / 0.15); color: hsl(215 16% 60%); }
.tier-apprentice   { background: hsla(263 70% 58% / 0.12); color: hsl(263 70% 58%); }
.tier-practitioner { background: hsla(217 91% 60% / 0.12); color: hsl(217 91% 60%); }
.tier-specialist   { background: hsla(189 94% 43% / 0.12); color: hsl(189 94% 43%); }
.tier-expert       { background: hsla(142 71% 45% / 0.12); color: hsl(142 71% 45%); }
.tier-sr-expert    { background: hsla(48 96% 53% / 0.12); color: hsl(48 96% 53%); }
.tier-principal    { background: hsla(25 95% 53% / 0.12); color: hsl(25 95% 53%); }
.tier-distinguished { background: hsla(0 84% 60% / 0.12); color: hsl(0 84% 60%); }
.tier-ace          { background: linear-gradient(135deg, hsla(39 100% 47% / 0.2), hsla(0 84% 60% / 0.2)); color: hsl(var(--accent)); }

/* ---------- Pricing unavailable ---------- */
.pricing-unavailable { opacity: 0.45; }
.pricing-unavailable::before { content: '\2717 '; color: hsl(var(--muted-foreground)); }

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
