/*
 * VisionWay — Exam Landing Page  v5.1  (production bug-fix)
 * ──────────────────────────────────────────────────────────
 * Fixes applied vs v5.0:
 *  1. Accordion: JS-driven height (scrollHeight) replaces max-height:1200px hack
 *  2. Roadmap: CSS Grid (5-col/2-col/1-col) replaces broken Flex + border hacks
 *  3. Pricing: translateY/scale removed; popular card stays in grid flow
 *  4. Animations: opacity/transform use will-change; no layout impact
 *  5. ScrollSpy: scrollIntoView batched + guarded to prevent continuous recalc
 *  6. Section spacing tightened: --section 88px → 64px
 *  7. Hero min-height: clamp removed → natural height via padding only
 *  8. Mobile: max-height:300px removed from .el-phase
 *  9. Tablet pricing: single column at proper width
 * ──────────────────────────────────────────────────────────
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
  --red: #DC2626;
  --red-dk: #B91C1C;
  --red-lt: #FCA5A5;
  --red-glow: rgba(220, 38, 38, .22);

  --ink: #0F172A;
  --body-txt: #475569;
  --muted: #94A3B8;

  --bg: #F1F5F9;
  --card: #FFFFFF;
  --border: #E2E8F0;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, .11);
  --shadow-red: 0 8px 28px rgba(220, 38, 38, .25);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .22s;

  --hdr-h: 70px;
  /* main site header            */
  --nav-h: 52px;
  /* sticky section nav           */
  --section: 64px;
  /* FIX: was 88px → tightened    */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET (scoped)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/*
 * ROOT FIX: The theme's style-formatted.css sets body { overflow-x: hidden }.
 * This creates a new scroll container on <body>, which COMPLETELY BREAKS
 * position:sticky on ALL descendants — including our sidebar card.
 *
 * Fix: Override overflow-x back to visible on <body> when the exam page
 * template is active, then use overflow-x:clip on .el-wrap instead.
 * `clip` prevents horizontal scroll overflow but does NOT create a new
 * scroll container, so position:sticky continues to work correctly.
 */
.page-template-template-exam-landing body,
body.page-template-template-exam-landing {
  overflow-x: visible !important;
}

.el-wrap {
  overflow-x: clip;
  /* safe: clip ≠ hidden — no new scroll container */
}

.el-wrap *,
.el-wrap *::before,
.el-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.el-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body-txt);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* FIX: overflow-x hidden on scroll-snapped carousels can cause layout bugs */
  overflow-x: clip;
}

.el-wrap h1,
.el-wrap h2,
.el-wrap h3,
.el-wrap h4,
.el-wrap h5,
.el-wrap h6 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
}

a {
  text-decoration: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTAINER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
   FIX: Removed min-height clamp. Height is now determined
        by content + padding only, preventing artificial gaps.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-hero {
  background: linear-gradient(140deg, #020617 0%, #0F172A 60%, #1E1B4B 100%);
  padding: 52px 0 56px;
  /* FIX: was 60px/64px with min-height on top */
  position: relative;
  overflow: hidden;
}

.el-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% -10%, rgba(220, 38, 38, .16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 110%, rgba(99, 102, 241, .13) 0%, transparent 55%);
  pointer-events: none;
}

.el-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 28px;
  /* FIX: was 36px */
  position: relative;
  z-index: 2;
}

.el-breadcrumb a {
  color: rgba(255, 255, 255, .65);
  transition: color var(--dur);
}

.el-breadcrumb a:hover {
  color: #fff;
}

.el-breadcrumb i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.el-breadcrumb span {
  color: #fff;
}

.el-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero columns: min-width:0 prevents text overflow blowing the column */
.el-hero-left,
.el-hero-right {
  min-width: 0;
  width: 100%;
}

.el-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 18px;
}

.el-badge i {
  width: 13px;
  height: 13px;
  color: #FCD34D;
}

.el-h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  color: #F8FAFC !important;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.el-accent {
  background: linear-gradient(135deg, var(--red) 0%, #F87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.el-hero-desc {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #94A3B8;
  max-width: 500px;
  margin-bottom: 22px;
  line-height: 1.65;
}

.el-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}

.el-checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #CBD5E1;
  font-weight: 500;
}

.el-checks li i {
  width: 16px;
  height: 16px;
  color: #34D399;
  flex-shrink: 0;
}

.el-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  transition: transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur),
    color var(--dur);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.el-btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.el-btn-primary:hover {
  background: var(--red-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(220, 38, 38, .38);
}

.el-btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, .15);
}

.el-btn-ghost:hover {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  transform: translateY(-2px);
}

.el-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.el-btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.el-btn-white {
  background: #fff;
  color: var(--red);
  font-weight: 700;
}

.el-btn-white:hover {
  background: #F8FAFC;
  color: var(--red-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.el-btn-full {
  width: 100%;
}

/* ── Stats Card ── */
.el-stats-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  padding: 28px 24px;
  /* FIX: was 36px/28px */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .4);
}

.el-score-ring {
  width: 120px;
  height: 120px;
  /* FIX: was 140px, reduced */
  border-radius: 50%;
  border: 3px solid rgba(220, 38, 38, .3);
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(220, 38, 38, .12), rgba(220, 38, 38, .03));
  box-shadow: 0 0 36px rgba(220, 38, 38, .15), inset 0 0 16px rgba(220, 38, 38, .07);
  position: relative;
}

.el-score-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--red);
  transform: rotate(-45deg);
}

.el-score-val {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.el-score-lbl {
  font-size: 10px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 4px;
}

.el-stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* FIX: gap 16→12, margin 24→20 */
.el-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.el-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(220, 38, 38, .15);
  color: var(--red-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-stat-icon i {
  width: 17px;
  height: 17px;
}

.el-stat-green {
  background: rgba(52, 211, 153, .15);
  color: #34D399;
}

.el-stat-purple {
  background: rgba(167, 139, 250, .15);
  color: #A78BFA;
}

.el-stat>div>strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.el-stat>div>span {
  font-size: 12px;
  color: #94A3B8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STICKY NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-sticky-nav {
  position: sticky;
  top: var(--hdr-h);
  z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
  transition: box-shadow var(--dur);
}

.el-sticky-nav.is-stuck {
  box-shadow: 0 4px 20px rgba(15, 23, 42, .1);
}

.el-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.el-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.el-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  justify-content: center;
  white-space: nowrap;
}

.el-tab {
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  transition: background var(--dur), color var(--dur);
  text-decoration: none;
}

.el-tab:hover {
  background: #F1F5F9;
  color: var(--ink);
}

.el-tab.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .28);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAIN LAYOUT
   CRITICAL FIX: min-width:0 on ALL grid children.
   CSS Grid default is min-width:auto which lets content blow out
   its column — this causes the sidebar to disappear and content
   to overflow. Every direct grid child MUST have min-width:0.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-main {
  padding: 48px 0 72px;
}

.el-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

/* ALL direct grid children: min-width:0 prevents auto-sizing blow-out */
.el-content,
.el-sidebar {
  min-width: 0;
  width: 100%;
}

/* Prevent any child element inside grid columns from overflowing */
.el-content img,
.el-content iframe,
.el-content video,
.el-content table {
  max-width: 100%;
  height: auto;
}

/* ── Section shared ── */
.el-section {
  margin-bottom: var(--section);
  scroll-margin-top: calc(var(--hdr-h) + var(--nav-h) + 12px);
}

.el-section:last-child {
  margin-bottom: 0;
}

.el-section-head {
  margin-bottom: 24px;
}

/* FIX: was 32px */
.el-section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.el-section-head p {
  font-size: 15px;
  color: var(--body-txt);
}

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

.el-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.el-editor-content {
  font-size: 16px;
  line-height: 1.75;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   OVERVIEW GRID  2×2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.el-overview-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  /* FIX: was 22px/20px */
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}

.el-overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(220, 38, 38, .2);
}

.el-ov-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(220, 38, 38, .08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-ov-icon i {
  width: 18px;
  height: 18px;
}

.el-ov-blue {
  background: rgba(59, 130, 246, .1);
  color: #3B82F6;
}

.el-ov-green {
  background: rgba(34, 197, 94, .1);
  color: #22C55E;
}

.el-ov-purple {
  background: rgba(139, 92, 246, .1);
  color: #8B5CF6;
}

.el-overview-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.el-overview-card p {
  font-size: 13px;
  color: var(--body-txt);
  line-height: 1.45;
}

.el-overview-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-txt);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCORDIONS
   FIX: max-height removed from CSS entirely.
        JS sets element.style.height = scrollHeight + 'px'
        so the panel is exactly content-sized, zero whitespace.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el-acc-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur);
}

.el-acc-item.open {
  border-color: rgba(220, 38, 38, .22);
  box-shadow: 0 4px 18px rgba(220, 38, 38, .07);
}

.el-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  min-height: 56px;
  transition: background var(--dur);
}

.el-acc-btn:hover {
  background: #FAFAFA;
}

.el-acc-item.open .el-acc-btn {
  background: #FAFAFA;
}

.el-acc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-acc-icon i {
  width: 17px;
  height: 17px;
}

.el-ic-red {
  background: rgba(220, 38, 38, .08);
  color: var(--red);
}

.el-ic-blue {
  background: rgba(59, 130, 246, .1);
  color: #3B82F6;
}

.el-ic-green {
  background: rgba(34, 197, 94, .1);
  color: #22C55E;
}

.el-ic-purple {
  background: rgba(139, 92, 246, .1);
  color: #8B5CF6;
}

.el-ic-orange {
  background: rgba(249, 115, 22, .1);
  color: #F97316;
}

.el-acc-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.el-faq-q {
  font-size: 14px;
}

.el-acc-chev {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  flex-shrink: 0;
  transition: transform .28s var(--ease), color .2s;
}

.el-acc-item.open .el-acc-chev {
  transform: rotate(45deg);
  color: var(--red);
}

#el-guide-acc .el-acc-item.open .el-acc-chev {
  transform: rotate(180deg);
}

/*
 * FIX: The body panel uses height (not max-height) so it collapses to
 *      exactly 0 when closed and exactly scrollHeight when open.
 *      JS controls el-acc-body height via style.height.
 */
.el-acc-body {
  height: 0;
  overflow: hidden;
  transition: height .35s cubic-bezier(0.4, 0, 0.2, 1);
  /* will-change keeps animation on compositor, avoids layout recalc */
  will-change: height;
}

/* No CSS open state for height — JS controls it entirely */

.el-acc-inner {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

/* Mini grids inside accordions */
.el-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.el-mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 14px;
}

.el-mini-card h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.el-mini-card h5 i {
  width: 13px;
  height: 13px;
  color: var(--red);
}

.el-mini-card p {
  font-size: 12px;
  color: var(--body-txt);
  line-height: 1.5;
}

.el-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.el-mod-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.el-mod-ico {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: #EFF6FF;
  color: #3B82F6;
  border-radius: 7px;
  flex-shrink: 0;
}

.el-mod-card strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.el-mod-card p {
  font-size: 12px;
  color: var(--body-txt);
  margin: 3px 0 0;
  line-height: 1.45;
}

.el-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: #F1F5F9;
  border-radius: 99px;
  color: #64748B;
  font-weight: 600;
}

.el-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.55;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 13px;
}

.el-bullet-list li i {
  width: 15px;
  height: 15px;
  color: #22C55E;
  flex-shrink: 0;
  margin-top: 2px;
}

.el-acc-text {
  font-size: 14px;
  color: var(--body-txt);
  line-height: 1.65;
  margin-bottom: 12px;
}

.el-band-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.el-band-row {
  display: grid;
  grid-template-columns: 72px 130px 1fr;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.el-band-row:last-child {
  border-bottom: none;
}

.el-band-row>span {
  padding: 9px 13px;
}

.el-band-head {
  background: #F8FAFC;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748B;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ROADMAP
   FIX: Replaced Flex+border-hack with CSS Grid.
        No more border-left:none and border-radius:0 hacks.
        Each card is a proper grid cell with full borders.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 equal columns desktop */
  gap: 12px;
}

.el-phase {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  /* FIX: proper radius on every card */
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
  /* FIX: min-width removed, grid manages width */
}

.el-phase:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ph-color, rgba(220, 38, 38, .3));
}

.el-phase-num {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-phase-num i {
  width: 20px;
  height: 20px;
}

.el-phase-meta span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin-bottom: 3px;
}

.el-phase-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.el-phase-meta p {
  font-size: 12px;
  color: var(--body-txt);
  line-height: 1.45;
}

/* Arrow between phase cards — hidden on mobile via responsive CSS */
.el-phase-arrow {
  display: none;
  /* arrows between cards are visual-only; hide by default */
}

/* Prevent grid children from blowing out their columns */
.el-phase {
  min-width: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRICING
   FIX: Removed translateY(-10px) scale(1.01) from popular card.
        Grid uses align-items:stretch so all cards are equal height.
        Popular card is highlighted with border + shadow only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  /* all rows same height */
}

.el-price-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  position: relative;
  min-width: 0;
  /* prevent grid child blow-out */
  width: 100%;
  /* fill the grid column */
}

.el-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Popular: dark card, NO transform displacement */
.el-price-popular {
  background: linear-gradient(150deg, #0F172A 0%, #1E1B4B 100%);
  border-color: rgba(220, 38, 38, .4);
  box-shadow: var(--shadow-red), var(--shadow-md);
  /* FIX: No translateY, no scale — stays in normal grid flow */
}

.el-price-popular:hover {
  transform: translateY(-4px);
}

.el-price-popular h3,
.el-price-popular .el-price-amount {
  color: #F1F5F9;
}

.el-price-popular .el-price-sub {
  color: #94A3B8;
}

.el-price-popular .el-price-features li {
  color: #F1F5F9;
}

.el-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), #F87171);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.el-popular-badge i {
  width: 11px;
  height: 11px;
}

.el-price-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.el-price-sub {
  font-size: 13px;
  color: #64748B;
}

.el-price-amount {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
}

.el-price-amount span {
  font-size: 19px;
  margin-top: 4px;
  margin-right: 2px;
}

.el-price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  margin-bottom: 24px;
}

.el-price-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.el-chk-yes {
  color: #22C55E;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.el-chk-no {
  color: #CBD5E1;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.el-price-popular .el-btn-primary {
  background: #fff;
  color: var(--red);
}

.el-price-popular .el-btn-primary:hover {
  background: #F8FAFC;
  color: var(--red-dk);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TESTIMONIALS CAROUSEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-car-nav {
  display: flex;
  gap: 8px;
}

.el-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur), box-shadow var(--dur);
  box-shadow: var(--shadow-xs);
}

.el-nav-btn i {
  width: 16px;
  height: 16px;
}

.el-nav-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.el-carousel-wrap {
  overflow: hidden;
}

.el-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.el-carousel:active {
  cursor: grabbing;
}

.el-carousel::-webkit-scrollbar {
  display: none;
}

.el-tcard {
  flex: 0 0 clamp(260px, 34vw, 320px);
  scroll-snap-align: start;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}

.el-tcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.el-tcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.el-tavatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #F87171);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-tinfo {
  flex: 1;
  min-width: 0;
}

.el-tinfo strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.el-tinfo span {
  font-size: 11px;
  color: var(--muted);
}

.el-tscore {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.el-told {
  font-size: 14px;
  font-weight: 700;
  color: #94A3B8;
}

.el-tnew {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), #F87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.el-tscore i {
  width: 13px;
  height: 13px;
  color: var(--red);
}

.el-tstars {
  display: flex;
  gap: 2px;
}

.el-star {
  width: 13px;
  height: 13px;
  color: #F59E0B;
  fill: #F59E0B;
}

.el-ttext {
  font-size: 13px;
  color: var(--body-txt);
  line-height: 1.65;
  font-style: italic;
  flex-grow: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR
   HOW STICKY WORKS (important):
   • position:sticky on .el-sidebar-card makes the card stick
     while the USER scrolls through the SIDEBAR COLUMN.
   • The card can only travel as far as the sidebar's height.
   • If sidebar = align-self:START → height = card height (~280px)
     → sticky has 0px to travel → card unsticks immediately ❌
   • If sidebar = align-self:STRETCH → height = content column height
     → sticky travels the full page ✓
   min-width:0 is still required to prevent grid column blow-out.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.el-sidebar {
  min-width: 0;
  /* CRITICAL: prevents grid column blow-out */
  align-self: stretch;
  /* CRITICAL: sidebar must be full content height for sticky to travel */
}


.el-sidebar-card {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dk) 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: sticky;
  /*
   * FIX: top must equal: main-header + sticky-nav + buffer.
   * Using individual vars so it works whether admin bar is present or not.
   * The admin-bar rules below override this for logged-in users.
   */
  top: calc(var(--hdr-h) + var(--nav-h) + 14px);
  box-shadow: var(--shadow-red), var(--shadow-md);
  overflow: hidden;
  /* FIX: width must be constrained to the column, not the viewport */
  width: 100%;
  box-sizing: border-box;
}

.el-sidebar-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, transparent 60%);
  pointer-events: none;
}

.el-sidebar-card h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 7px;
  position: relative;
}

.el-sidebar-card>p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 16px;
  line-height: 1.55;
  position: relative;
}

.el-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
  position: relative;
}

.el-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.el-sidebar-list li i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.el-sidebar-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
  margin-top: 12px;
  position: relative;
}

.el-sidebar-note i {
  width: 12px;
  height: 12px;
}

.el-sidebar-unis {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}

.el-unis-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}

.el-unis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.el-uni-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.el-uni-chip i {
  width: 12px;
  height: 12px;
  color: #94A3B8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
   FIX: will-change on transform/opacity — compositor only,
        no layout recalculation. Sections not in view have
        opacity:0 but still take up space (visibility hidden
        would remove from flow; we need them in flow for
        ScrollSpy offset calculations).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* No-JS: everything visible */
.el-spy {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* With JS: hide then reveal */
.js-ready .el-spy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}

.js-ready .el-spy.el-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
  /* release after animation */
}

/* Hero entrance */
.el-hero-left,
.el-hero-right {
  will-change: auto;
}

.js-ready .el-hero-left,
.js-ready .el-hero-right {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.js-ready .el-hero-left.el-ani {
  animation: elUp .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.js-ready .el-hero-right.el-ani {
  animation: elUp .7s cubic-bezier(.16, 1, .3, 1) .12s forwards;
}

@keyframes elUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — TABLET  769px – 1024px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {

  /* ── Main layout: collapse to 1 column ── */
  .el-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .el-content {
    min-width: 0;
  }

  .el-sidebar {
    order: 2;
    min-width: 0;
    width: 100%;
  }

  .el-sidebar-card {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .el-sidebar-unis {
    max-width: 480px;
    margin: 14px auto 0;
  }

  /* ── Hero: stack vertically, stats on top ── */
  .el-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .el-hero-left {
    order: 1;
  }

  .el-hero-right {
    order: 0;
  }

  .el-stats-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  /* ── Roadmap: 2 equal cols, 5th spans full ── */
  .el-roadmap {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .el-phase:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* ── Pricing: 2 cols, popular card full-width centred ── */
  .el-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .el-price-popular {
    grid-column: 1 / -1;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

  /* ── Nav tabs: scroll from left ── */
  .el-tabs {
    justify-content: flex-start;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — MOBILE  ≤ 768px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

  /* Container padding tighter */
  .el-container {
    padding: 0 16px;
  }

  .el-main {
    padding: 28px 0 48px;
  }

  /* Section head stacks */
  .el-section-head.el-flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .el-section {
    margin-bottom: 44px;
  }

  /* ── Hero ── */

  /* ── Accordion inner grids: force 1 column ── */
  .el-mini-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .el-module-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Band score table: allow horizontal scroll rather than overflow */
  .el-band-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .el-band-row {
    grid-template-columns: 56px 110px 1fr;
    min-width: 320px;
  }

  /* Accordion button/inner compact */
  .el-acc-btn {
    padding: 12px 14px;
    min-height: 48px;
    gap: 10px;
  }

  .el-acc-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .el-acc-inner {
    padding: 12px 14px 16px;
  }

  /* ── Roadmap: 1 column ── */
  .el-roadmap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .el-phase:nth-child(5) {
    grid-column: auto;
  }

  /* reset tablet span */
  .el-phase {
    padding: 16px 14px;
    gap: 8px;
  }

  /* ── Pricing: 1 column, popular card full width ── */
  .el-pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .el-price-popular {
    grid-column: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
    justify-self: auto;
  }

  /* Popular badge may clip on narrow card — keep it inside */
  .el-popular-badge {
    font-size: 10px;
    padding: 3px 12px;
  }

  /* ── Testimonial carousel cards: full viewport width minus padding ── */
  .el-tcard {
    flex: 0 0 calc(100vw - clamp(32px, 8vw, 56px));
  }

  /* ── Sidebar unis: 2 col unchanged, looks fine on mobile ── */

  /* ── Nav tabs: left-align and scroll ── */
  .el-tabs {
    justify-content: flex-start;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — SMALL PHONE  ≤ 480px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {

  /* Hero text tighter */
  .el-h1 {
    letter-spacing: -.8px;
  }

  .el-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .el-checks {
    gap: 7px;
  }

  /* Overview cards compact */
  .el-overview-card {
    padding: 14px 13px;
    gap: 7px;
  }

  /* Roadmap cards compact */
  .el-phase {
    padding: 14px 12px;
  }

  .el-phase-num {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .el-phase-meta strong {
    font-size: 13px;
  }

  /* Pricing cards compact */
  .el-price-card {
    padding: 22px 18px;
  }

  .el-price-amount {
    font-size: 36px;
    margin: 14px 0;
  }

  /* Testimonials */
  .el-tcard {
    flex: 0 0 calc(100vw - 32px);
    padding: 16px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — VERY SMALL  ≤ 380px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 380px) {
  .el-tcard {
    flex: 0 0 calc(100vw - 24px);
  }

  .el-btn {
    font-size: 13px;
    padding: 11px 18px;
  }

  .el-acc-btn {
    padding: 11px 12px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ADMIN BAR OFFSET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.admin-bar .el-sticky-nav {
  top: calc(var(--hdr-h) + 32px);
}

body.admin-bar .el-sidebar-card {
  top: calc(var(--hdr-h) + var(--nav-h) + 32px + 14px);
}

@media (max-width: 782px) {
  body.admin-bar .el-sticky-nav {
    top: calc(var(--hdr-h) + 46px);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ULTRA-WIDE  1920px+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 1920px) {
  .el-container {
    max-width: 1440px;
  }
}