/* =========================================================
   ailearnist — HOMEPAGE STYLES (index.php only)
   Tokens, resets and buttons: /assets/css/base.css
   Navbar / footer / cookies / share: shared include CSS
   ========================================================= */

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 10px; }
.hero-carousel-container {
  position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(500px 300px at 10% 100%, rgba(139, 92, 246, .3), transparent 60%),
    linear-gradient(135deg, var(--studio-start), var(--studio-end));
  color: #eef0ff; padding: 56px 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
}
[data-theme="dark"] .hero-carousel-container { border-color: rgba(34, 211, 238, .18); }
.hero-carousel-container::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(180deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero-copy, .hero-console { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .8rem;
  color: #a5f3fc; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sk-lime); box-shadow: 0 0 0 0 rgba(163, 230, 53, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); } }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; }
.grad-text { background: linear-gradient(90deg, var(--sk-lime), var(--sk-cyan) 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #c8cbe8; font-size: 1.08rem; max-width: 540px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-actions a {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-actions a:hover { transform: translateY(-2px); }
.hero-primary-action { background: var(--sk-lime); color: #1a2e05; box-shadow: 0 12px 28px -12px rgba(163, 230, 53, .8); }
.hero-secondary-action { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.hero-secondary-action:hover { background: rgba(255, 255, 255, .14); }
.hero-primary-action::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.hero-primary-action:hover::after { left: 130%; }
.hero-metrics { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-metrics div { display: flex; flex-direction: column; }
.hero-metrics strong { font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.hero-metrics span { font-size: .82rem; color: #a7abcf; text-transform: uppercase; letter-spacing: .06em; }

/* Console */
.hero-console {
  background: rgba(8, 10, 28, .7); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  font-family: var(--font-mono); font-size: .84rem;
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #fb7185; } .dot.y { background: #fbbf24; } .dot.g { background: #a3e635; }
.console-bar em { font-style: normal; color: #8f94bd; margin-left: 8px; font-size: .78rem; }
.console-live { white-space: nowrap; margin-left: auto; font-size: .7rem; color: #a3e635; background: rgba(163, 230, 53, .12); padding: 3px 9px; border-radius: 999px; }
.console-body { padding: 18px 18px 14px; }
.console-line { color: #d7dafa; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln { display: inline-block; width: 22px; color: #555b8a; }
.tk-role { color: #c4b5fd; } .tk-key { color: #67e8f9; } .tk-num { color: #fbbf24; } .tk-str { color: #a3e635; }
.console-out { margin-top: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; }
.out-head, .out-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 12px; }
.out-head { background: rgba(255, 255, 255, .05); color: #8f94bd; font-size: .74rem; text-transform: uppercase; }
.out-row { color: #fff; font-weight: 700; }
.rising { color: #a3e635; }
.console-typing { margin-top: 14px; min-height: 44px; color: #c8cbe8; line-height: 1.5; }
.typing-caret::after { content: "▍"; color: var(--sk-cyan); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.console-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.console-tags span { font-size: .7rem; color: #8f94bd; border: 1px solid rgba(255, 255, 255, .1); padding: 3px 9px; border-radius: 999px; }

.hero-new { text-align: center; color: var(--text-muted); margin: 22px auto 0; max-width: 720px; font-size: .95rem; }
.new-pill { background: var(--sk-lime); color: #1a2e05; font-weight: 700; font-size: .72rem; padding: 3px 9px; border-radius: 999px; margin-right: 6px; text-transform: uppercase; }

/* ---------- Features ---------- */
.features { max-width: var(--wrap); margin: 0 auto; padding: 44px 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--fc) 55%, var(--border)); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--fc) 18%, transparent); color: var(--fc); font-size: 1.1rem;
}
[data-theme="light"] .feature-icon { color: color-mix(in srgb, var(--fc) 70%, #0f172a); }
.feature-card h2 { font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .9rem; flex: 1; }
.feature-card a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.feature-card a i { transition: transform .2s; }
.feature-card:hover a i { transform: translateX(4px); }

/* ---------- Skill check ---------- */
.skillcheck { max-width: var(--wrap); margin: 0 auto; padding: 30px 20px 50px; }
.skillcheck-inner {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 26px;
  padding: 44px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; box-shadow: var(--shadow);
}
.sc-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; letter-spacing: -.02em; }
.sc-copy > p { color: var(--text-muted); margin: 0 0 22px; }
.sc-stats { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 28px; flex-wrap: wrap; }
.sc-stats li { display: flex; flex-direction: column; }
.sc-stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); }
.sc-stats span { font-size: .8rem; color: var(--text-muted); }
.sc-skills { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-skills li { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); }
.sc-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sc-note { color: var(--text-muted); font-size: .85rem; }
.sc-note i { color: #16a34a; margin-right: 4px; }

.sc-result {
  background: linear-gradient(160deg, var(--studio-start), var(--studio-end)); color: #e9eaff;
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px;
}
.sc-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: #a7abcf; }
.sc-result-head strong { color: #fff; font-family: var(--font-head); }
.sc-result-head b { font-size: 1.7rem; color: var(--sk-lime); }
.sc-bars { display: grid; gap: 7px; }
.sc-bar { display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 10px; font-size: .74rem; }
.sc-bar span:first-child { color: #c8cbe8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sc-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.sc-bar em { font-style: normal; font-family: var(--font-mono); color: #a7abcf; text-align: right; }
.sc-plan h3 { font-size: .95rem; margin-bottom: 8px; }
.sc-plan ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sc-plan li { display: flex; align-items: center; gap: 10px; font-size: .85rem; background: rgba(255, 255, 255, .05); padding: 8px 10px; border-radius: 10px; }
.sc-plan .n { width: 22px; height: 22px; border-radius: 7px; background: rgba(34, 211, 238, .18); color: #67e8f9; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.sc-plan em { margin-left: auto; font-style: normal; font-family: var(--font-mono); color: #fb7185; }

/* ---------- Learning paths ---------- */
.path-tabs-section { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 60px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); margin: 0; }
.path-tabs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.path-tab-card {
  --path-accent-rgb: 139, 92, 246; --path-icon-start: #8b5cf6; --path-icon-end: #6366f1;
  position: relative; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px 22px; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.path-tab-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: .55;
  background: linear-gradient(90deg, var(--path-icon-start), var(--path-icon-end)); transition: opacity .3s;
}
.path-tab-card::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-18deg); transition: left .8s ease;
}
.path-tab-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--path-accent-rgb), .45);
  box-shadow: 0 22px 40px -22px rgba(var(--path-accent-rgb), .65);
}
.path-tab-card:hover::before { opacity: 1; }
.path-tab-card:hover::after { left: 140%; }
.path-tab-card:nth-child(1) { --path-accent-rgb: 124, 92, 255; --path-icon-start: #8b5cf6; --path-icon-end: #6366f1; }
.path-tab-card:nth-child(2) { --path-accent-rgb: 34, 211, 238; --path-icon-start: #22d3ee; --path-icon-end: #0891b2; }
.path-tab-card:nth-child(3) { --path-accent-rgb: 245, 158, 11; --path-icon-start: #fbbf24; --path-icon-end: #d97706; }
.path-tab-card:nth-child(4) { --path-accent-rgb: 251, 113, 133; --path-icon-start: #fb7185; --path-icon-end: #e11d48; }
.path-tab-card:nth-child(5) { --path-accent-rgb: 20, 184, 166; --path-icon-start: #2dd4bf; --path-icon-end: #0d9488; }
.path-tab-card:nth-child(6) { --path-accent-rgb: 59, 130, 246; --path-icon-start: #60a5fa; --path-icon-end: #2563eb; }
.path-tab-card:nth-child(7) { --path-accent-rgb: 132, 204, 22; --path-icon-start: #a3e635; --path-icon-end: #65a30d; }
.path-tab-card:nth-child(8) { --path-accent-rgb: 244, 63, 94; --path-icon-start: #f472b6; --path-icon-end: #db2777; }
.path-tab-index { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); opacity: .7; }
.path-tab-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--path-icon-start), var(--path-icon-end));
  box-shadow: 0 10px 22px -10px rgba(var(--path-accent-rgb), .9); margin-bottom: 16px;
  transition: transform .3s ease;
}
.path-tab-card:hover .path-tab-icon { transform: scale(1.07) rotate(-4deg); }
.path-tab-card h3 { font-size: 1.08rem; margin-bottom: 8px; padding-right: 26px; }
.path-tab-card p { margin: 0 0 14px; color: var(--text-muted); font-size: .88rem; flex: 1; }
.path-tab-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.path-tab-chip {
  font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(var(--path-accent-rgb), .1); color: rgb(var(--path-accent-rgb));
  border: 1px solid rgba(var(--path-accent-rgb), .22);
}
[data-theme="light"] .path-tab-chip { color: color-mix(in srgb, rgb(var(--path-accent-rgb)) 65%, #0f172a); }
.path-tab-cta { font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; }
.path-tab-cta i { transition: transform .2s; }
.path-tab-card:hover .path-tab-cta i { transform: translateX(4px); }

/* ---------- Starter ---------- */
.starter { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.starter-inner { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.starter-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 14px; }
.starter-copy > p { color: var(--text-muted); margin: 0 0 24px; }
.starter-steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.starter-steps li { display: flex; gap: 14px; align-items: flex-start; }
.starter-steps li > span {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: var(--font-mono);
}
.starter-steps strong { display: block; }
.starter-steps div { color: var(--text-muted); font-size: .92rem; }
.starter-steps div strong { color: var(--text); font-size: 1rem; }
.starter-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.starter-ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-muted); font-size: .86rem; }
.starter-ticks i { color: #16a34a; margin-right: 5px; }
.starter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.starter-card-bar { padding: 12px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); }
.starter-card-bar i { margin-right: 6px; color: var(--accent); }
.starter-code {
  margin: 0; padding: 18px; font-family: var(--font-mono); font-size: .85rem; line-height: 1.8;
  background: linear-gradient(135deg, var(--studio-start), var(--studio-end)); color: #e6e8ff; overflow-x: auto;
}
.starter-result { padding: 16px 18px 6px; }
.sr-label { font-size: .78rem; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: .05em; }
[data-theme="dark"] .sr-label { color: #4ade80; }
.starter-result ul { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; }
.starter-result li { margin-bottom: 4px; }
.starter-caption { margin: 0; padding: 8px 18px 18px; color: var(--text-muted); font-size: .84rem; }

/* ---------- Lessons ---------- */
.lessons { max-width: var(--wrap); margin: 0 auto; padding: 60px 20px 70px; outline: none; }
.lessons-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start; }
.lessons-layout.sidebar-hidden { grid-template-columns: 1fr; }
.lessons-layout.sidebar-hidden .sidebar-scroll { display: none; }
.lesson-sidebar {
  position: sticky; top: 80px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; }
.sidebar-head i { color: var(--accent); margin-right: 6px; }
.sidebar-toggle { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.sidebar-scroll { max-height: calc(100vh - 160px); overflow-y: auto; padding: 8px; }
.lesson-category { margin-bottom: 4px; }
.category-header {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border-radius: 10px;
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .92rem; user-select: none;
}
.category-header:hover { background: var(--bg-alt); }
.category-header .cat-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; color: #fff; }
.category-header .cat-count { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }
.category-chevron { font-size: .7rem; color: var(--text-muted); transition: transform .25s ease; }
.lesson-category.collapsed .category-chevron { transform: rotate(-90deg); }
.lesson-list { overflow: hidden; }
.lesson-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text-muted);
  font: inherit; font-size: .87rem; padding: 7px 10px 7px 46px; border-radius: 8px; cursor: pointer;
  max-height: 60px; opacity: 1; transition: max-height .3s ease, opacity .25s ease, padding .3s ease, background .2s, color .2s;
}
.lesson-item:hover { background: var(--bg-alt); color: var(--text); }
.lesson-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 600; }
.lesson-category.collapsed .lesson-item { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }

.lesson-main { min-width: 0; }
.lesson-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin-bottom: 8px; }
.lesson-header p { color: var(--text-muted); margin: 0 0 22px; }
.lesson-content {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px;
}
.lesson-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.lesson-content p { margin: 0 0 14px; color: var(--text-muted); }
.lesson-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lesson-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.lesson-points i { color: var(--accent); margin-top: 5px; }
.lesson-example {
  margin-top: 18px; padding: 16px; border-radius: 12px; font-family: var(--font-mono); font-size: .84rem;
  background: linear-gradient(135deg, var(--studio-start), var(--studio-end)); color: #e6e8ff; white-space: pre-wrap;
}

/* Prompt Lab */
.prompt-lab { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.lab-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.lab-bar i { color: var(--accent); margin-right: 6px; }
.lab-score { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; color: var(--text-muted); }
.lab-score b { font-size: 1.05rem; color: var(--text); }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; }
.lab-inputs { padding: 20px; display: grid; gap: 14px; border-right: 1px solid var(--border); }
.lab-inputs label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
.lab-inputs small { font-weight: 400; color: var(--text-muted); }
.lab-inputs input, .lab-inputs textarea {
  width: 100%; font: inherit; font-size: .9rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical;
}
.lab-inputs input:focus, .lab-inputs textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: var(--accent); }
.lab-output { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--studio-start), var(--studio-end)); color: #e6e8ff; }
.lab-out-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-family: var(--font-mono); font-size: .78rem; color: #8f94bd; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lab-copy { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-size: .74rem; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.lab-output pre { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 160px; }
.lab-checks { list-style: none; margin: 0; padding: 12px 18px 18px; display: grid; gap: 6px; font-size: .8rem; }
.lab-checks li { display: flex; gap: 8px; align-items: center; color: #a7abcf; }
.lab-checks li.ok { color: #d9f99d; }
.lab-checks li i { width: 14px; }

/* Quiz */
.quiz-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.quiz-container h3 { font-size: 1.02rem; margin-bottom: 14px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  text-align: left; font: inherit; font-size: .92rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--accent); }
.quiz-option.correct { border-color: #16a34a; background: rgba(22, 163, 74, .1); }
.quiz-option.wrong { border-color: #e11d48; background: rgba(225, 29, 72, .08); }
.quiz-option:disabled { cursor: default; }
.quiz-feedback { margin: 12px 0 0; font-size: .9rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .path-tabs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-carousel-container { grid-template-columns: 1fr; padding: 40px 28px; }
  .skillcheck-inner, .starter-inner { grid-template-columns: 1fr; }
  .skillcheck-inner { padding: 30px 24px; }
  .lessons-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .sidebar-scroll { max-height: 360px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-inputs { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: 16px; }
  .hero-carousel-container { padding: 32px 20px; border-radius: 22px; }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-metrics { gap: 22px; }
  .feature-grid, .path-tabs-grid { grid-template-columns: 1fr; gap: 16px; }
  .path-tab-card { padding: 22px 18px 20px; }
  .sc-bar { grid-template-columns: 96px 1fr 26px; }
}
