/* ============================================================
   excel.css — DataVix | /excel landing page
   Standalone stylesheet, scoped entirely under the .exl- prefix and the
   <body> this page controls, so it cannot leak into or be affected by any
   other page's CSS. Color/font tokens are copied from the values already
   confirmed in use across the homepage/checkout/admin dashboard (see
   frontend/js/admin.js's CHART_COLORS comment: "Matches the DataVix
   homepage/checkout palette") rather than the compiled bundle's CSS
   itself, since that file has no separable "design tokens" module — this
   is the closest thing to reusing it without duplicating the bundle.
   ============================================================ */

:root {
  --exl-primary: #7c3aed;      /* violet */
  --exl-primary-dark: #6d28d9;
  --exl-secondary: #d946ef;    /* fuchsia */
  --exl-success: #10b981;      /* emerald */
  --exl-warning: #f59e0b;      /* amber */
  --exl-danger: #e11d48;       /* rose */
  --exl-ink: #0f172a;          /* slate-900 */
  --exl-ink-soft: #1e293b;     /* slate-800 */
  --exl-muted: #64748b;        /* slate-500 */
  --exl-line: rgba(15, 23, 42, 0.08);
  --exl-bg: #fbfaf8;
  --exl-card: #ffffff;
  --exl-radius-lg: 1.25rem;
  --exl-radius-md: 0.9rem;
  --exl-radius-full: 999px;
  --exl-shadow-card: 0 20px 50px rgba(15, 23, 42, 0.08);
  --exl-shadow-lift: 0 30px 80px rgba(15, 23, 42, 0.16);
  --exl-font-head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --exl-font-body: 'Inter', system-ui, sans-serif;
}

.exl-body {
  margin: 0;
  background: var(--exl-bg);
  color: var(--exl-ink);
  font-family: var(--exl-font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
.exl-body * { box-sizing: border-box; }
.exl-body img { max-width: 100%; display: block; }
.exl-body a { color: inherit; }
.exl-body :focus-visible {
  outline: 3px solid var(--exl-primary);
  outline-offset: 2px;
}

.exl-container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.exl-container--narrow { max-width: 46rem; }

.exl-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.exl-section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.exl-section--dark {
  background: var(--exl-ink);
  color: #e2e8f0;
}
.exl-section--soft { background: #f4f1ff; }

.exl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--exl-primary);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--exl-radius-full);
  margin-bottom: 1rem;
}
.exl-section--dark .exl-eyebrow {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.12);
}

.exl-h1 {
  font-family: var(--exl-font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  margin: 0 0 1rem;
}
.exl-h2 {
  font-family: var(--exl-font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 0.75rem;
  text-align: center;
}
.exl-h3 {
  font-family: var(--exl-font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.exl-sub {
  color: var(--exl-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 40rem;
}
.exl-sub--center { margin: 0 auto 2.5rem; text-align: center; }
.exl-section--dark .exl-sub { color: #94a3b8; }

.exl-grad-text {
  background: linear-gradient(90deg, var(--exl-primary), var(--exl-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────── */
.exl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--exl-font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--exl-radius-full);
  padding: 0.95rem 1.9rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.exl-btn:hover { transform: translateY(-2px); }
/* Compound .exl-btn.exl-btn-* selectors (specificity 0,2,0), not just
   .exl-btn-primary alone (0,1,0) — needed to outrank the .exl-body a
   {color:inherit} reset below (0,1,1), which otherwise wins and silently
   turns this button's text the same color as its own dark background. */
.exl-btn.exl-btn-primary {
  background: var(--exl-ink);
  color: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}
.exl-btn.exl-btn-primary:hover { background: #1e293b; }
.exl-btn.exl-btn-secondary {
  background: #fff;
  color: var(--exl-ink);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--exl-line);
}
.exl-btn.exl-btn-secondary:hover { background: #f8fafc; }
.exl-btn-block { width: 100%; }
.exl-btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* ── Hero ────────────────────────────────────────────────── */
.exl-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(50rem 26rem at 100% 0%, rgba(217, 70, 239, 0.08), transparent 55%);
}
.exl-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .exl-hero-grid { grid-template-columns: 1fr; }
}
.exl-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.4rem;
}
.exl-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  font-size: 0.88rem;
  color: var(--exl-muted);
}
.exl-hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.exl-hero-trust svg { flex-shrink: 0; color: var(--exl-success); }

.exl-hero-card {
  background: var(--exl-ink);
  border-radius: 1.75rem;
  padding: 2rem;
  color: #fff;
  box-shadow: var(--exl-shadow-lift);
  position: relative;
}
.exl-hero-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--exl-primary), var(--exl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--exl-font-head);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.exl-hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #94a3b8;
}
.exl-stars { color: var(--exl-warning); letter-spacing: 0.05em; }

/* ── Cards / grids ───────────────────────────────────────── */
.exl-grid {
  display: grid;
  gap: 1.25rem;
}
.exl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.exl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.exl-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .exl-grid-3, .exl-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .exl-grid-2, .exl-grid-3, .exl-grid-4 { grid-template-columns: 1fr; }
}

.exl-card {
  background: var(--exl-card);
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-lg);
  padding: 1.6rem;
  box-shadow: var(--exl-shadow-card);
}
.exl-icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--exl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* Problem section */
.exl-problem-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-md);
  padding: 1.25rem;
}
.exl-problem-card .exl-emoji { font-size: 1.4rem; line-height: 1; }
.exl-problem-card p { margin: 0; color: var(--exl-ink-soft); font-size: 0.96rem; line-height: 1.5; }

/* Transformation before/after */
.exl-vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .exl-vs-grid { grid-template-columns: 1fr; }
  .exl-vs-arrow { transform: rotate(90deg); margin: 0 auto; }
}
.exl-vs-arrow {
  align-self: center;
  color: var(--exl-primary);
  font-size: 1.5rem;
}
.exl-vs-card { border-radius: var(--exl-radius-lg); padding: 1.75rem; }
.exl-vs-card.before { background: #fff1f2; border: 1px solid #fecdd3; }
.exl-vs-card.after { background: #ecfdf5; border: 1px solid #a7f3d0; }
.exl-vs-card h4 { margin: 0 0 0.9rem; font-family: var(--exl-font-head); font-size: 1.05rem; }
.exl-vs-card.before h4 { color: var(--exl-danger); }
.exl-vs-card.after h4 { color: #047857; }
.exl-vs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.exl-vs-list li { display: flex; gap: 0.55rem; font-size: 0.94rem; color: var(--exl-ink-soft); }

/* Curriculum accordion */
.exl-mod {
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-md);
  background: #fff;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.exl-mod-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--exl-font-body);
  color: var(--exl-ink);
}
.exl-mod-head:hover { background: #faf9ff; }
.exl-mod-title { display: flex; align-items: center; gap: 0.85rem; }
.exl-mod-num {
  width: 2.1rem; height: 2.1rem; border-radius: 0.6rem;
  background: rgba(124,58,237,0.1); color: var(--exl-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.exl-mod-meta { font-size: 0.82rem; color: var(--exl-muted); margin-top: 0.15rem; }
.exl-mod-chevron { transition: transform 0.2s ease; color: var(--exl-muted); flex-shrink: 0; }
.exl-mod[data-open="true"] .exl-mod-chevron { transform: rotate(180deg); }
.exl-mod-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.exl-mod[data-open="true"] .exl-mod-body { max-height: 40rem; }
.exl-mod-body-inner { padding: 0 1.25rem 1.15rem 1.25rem; }
.exl-mod-lesson {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: var(--exl-ink-soft);
  padding: 0.4rem 0;
  border-top: 1px solid var(--exl-line);
}
.exl-mod-lesson:first-child { border-top: 0; }
.exl-mod-lesson svg { color: var(--exl-success); flex-shrink: 0; }
.exl-difficulty {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--exl-radius-full);
  margin-left: 0.5rem;
}
.exl-difficulty.beginner { background: #ecfdf5; color: #047857; }
.exl-difficulty.intermediate { background: #fffbeb; color: #b45309; }
.exl-difficulty.advanced { background: #fef2f2; color: #b91c1c; }

.exl-curriculum-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--exl-muted);
}
.exl-curriculum-summary strong { color: var(--exl-ink); font-family: var(--exl-font-head); }

/* What you'll learn grid */
.exl-learn-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-md);
  font-size: 0.93rem;
  font-weight: 600;
}
.exl-learn-item svg { color: var(--exl-primary); flex-shrink: 0; }

/* Projects */
.exl-project-card {
  background: #fff;
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-lg);
  padding: 1.5rem;
}
.exl-project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--exl-secondary);
  background: rgba(217,70,239,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--exl-radius-full);
  margin-bottom: 0.7rem;
}

/* Instructor */
.exl-instructor-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 800px) { .exl-instructor-grid { grid-template-columns: 1fr; } }
.exl-instructor-photo {
  width: 100%;
  aspect-ratio: 1;
  max-width: 20rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--exl-primary), var(--exl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--exl-font-head);
  font-size: 3.5rem;
  font-weight: 800;
}
.exl-instructor-points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.exl-instructor-points li { display: flex; gap: 0.65rem; font-size: 0.98rem; color: var(--exl-ink-soft); }
.exl-instructor-points svg { color: var(--exl-success); flex-shrink: 0; margin-top: 0.15rem; }

/* Includes */
.exl-include-card {
  text-align: center;
  padding: 1.6rem 1.2rem;
}

/* Testimonials */
.exl-t-card {
  background: #fff;
  border: 1px solid var(--exl-line);
  border-radius: var(--exl-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.exl-t-head { display: flex; align-items: center; gap: 0.8rem; }
.exl-t-avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(124,58,237,0.12); color: var(--exl-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--exl-font-head); flex-shrink: 0;
}
.exl-t-name { font-weight: 700; font-size: 0.95rem; }
.exl-t-role { font-size: 0.8rem; color: var(--exl-muted); }
.exl-t-quote { font-size: 0.94rem; color: var(--exl-ink-soft); line-height: 1.55; margin: 0; }

.exl-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 760px) { .exl-video-grid { grid-template-columns: 1fr; } }
.exl-video-card {
  border-radius: var(--exl-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0f172a;
  border: 1px solid var(--exl-line);
}
.exl-video-card iframe { width: 100%; height: 100%; border: 0; }
.exl-video-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #94a3b8; font-size: 0.85rem; text-align: center; padding: 1rem;
}

/* Free lesson preview */
.exl-preview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 800px) { .exl-preview-wrap { grid-template-columns: 1fr; } }
.exl-preview-video {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #0f172a;
  box-shadow: var(--exl-shadow-lift);
}
.exl-preview-video iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.exl-faq-item {
  border-bottom: 1px solid var(--exl-line);
}
.exl-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--exl-ink);
}
.exl-faq-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--exl-primary); }
.exl-faq-item[data-open="true"] .exl-faq-icon { transform: rotate(45deg); }
.exl-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--exl-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.exl-faq-item[data-open="true"] .exl-faq-a { max-height: 20rem; }
.exl-faq-a-inner { padding: 0 0.25rem 1.15rem; }

/* Pricing */
.exl-pricing-card {
  max-width: 30rem;
  margin: 0 auto;
  background: var(--exl-ink);
  color: #fff;
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: var(--exl-shadow-lift);
  position: relative;
}
.exl-pricing-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--exl-warning);
  color: #1e1206;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--exl-radius-full);
  white-space: nowrap;
}
.exl-price-row { display: flex; align-items: baseline; gap: 0.6rem; justify-content: center; margin: 1.4rem 0 0.3rem; }
.exl-price-final { font-family: var(--exl-font-head); font-weight: 800; font-size: 2.6rem; }
.exl-price-strike { color: #64748b; text-decoration: line-through; font-size: 1.1rem; }
.exl-price-save { text-align: center; color: var(--exl-success); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.4rem; }
.exl-pricing-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.exl-pricing-list li { display: flex; gap: 0.6rem; font-size: 0.93rem; color: #e2e8f0; }
.exl-pricing-list svg { color: var(--exl-success); flex-shrink: 0; }
.exl-pricing-trust {
  display: flex; justify-content: center; gap: 1.2rem; margin-top: 1.2rem;
  font-size: 0.78rem; color: #94a3b8; flex-wrap: wrap;
}
.exl-pricing-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Final CTA */
.exl-final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--exl-primary), var(--exl-secondary));
  border-radius: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
}
.exl-final-cta .exl-h2 { color: #fff; }
.exl-final-cta .exl-sub { color: rgba(255,255,255,0.85); }
.exl-final-cta .exl-btn-primary { background: #fff; color: var(--exl-ink); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.exl-final-cta .exl-btn-primary:hover { background: #f8fafc; }

/* Topbar */
.exl-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--exl-line);
  padding: 0.85rem 0;
}
.exl-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.exl-logo {
  font-family: var(--exl-font-head);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--exl-ink);
}
.exl-logo span { color: var(--exl-primary); }

/* Sticky mobile CTA */
.exl-sticky-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--exl-line);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: 0 -12px 40px rgba(15,23,42,0.12);
}
@media (max-width: 760px) {
  .exl-sticky-mobile { display: flex; }
  .exl-body { padding-bottom: 4.75rem; }
}
.exl-sticky-mobile .exl-price-final { font-size: 1.3rem; }
.exl-sticky-price { display: flex; flex-direction: column; }
.exl-sticky-price small { color: var(--exl-muted); font-size: 0.72rem; }

/* Footer */
.exl-footer {
  background: var(--exl-ink);
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}
.exl-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.exl-footer a { color: #cbd5e1; text-decoration: none; }
.exl-footer a:hover { color: #fff; }
.exl-footer-links { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.exl-footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

.exl-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .exl-body * { transition: none !important; animation: none !important; }
}
