/* ==========================================================================
   dissolveX HRMS — Learning Management page
   Hero with a learner's home, a four-stage "how it works" switcher, a team
   skill map, three role cards, the shared FAQ, and a closing band.
   Classes are prefixed lx- so the site-wide pattern rules in polish.css and
   features.css (which match on -card, -mockup, -checklist, -cta-section...)
   stay out of the way.
   ========================================================================== */

.lx-page {
    --lx-ink: #0b2b20;
    --lx-ink-soft: #3f5a4f;
    --lx-ink-faint: #6b8579;
    --lx-forest: #0b2b20;
    --lx-forest-raised: #0f3a2b;
    --lx-emerald: #10b981;
    --lx-emerald-dark: #059669;
    --lx-emerald-deep: #047857;
    --lx-mint: #eaf6f0;
    --lx-mint-strong: #d6efe3;
    --lx-line: rgba(11, 43, 32, 0.1);
    --lx-surface: #ffffff;
    --lx-shadow: 0 30px 60px -36px rgba(11, 43, 32, 0.35);
    --lx-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Shared type ---------- */
.lx-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lx-emerald-dark);
}

.lx-eyebrow-line {
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--lx-emerald);
}

.lx-section-head {
    max-width: 720px;
    margin: 0 0 40px;
}

.lx-section-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--lx-ink);
}

.lx-section-title .serif-italic {
    display: inline;
    font-weight: 400;
}

.lx-section-lead {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--lx-ink-soft);
}

.lx-points {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.lx-points li {
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--lx-ink);
}

.lx-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 11px;
}

/* ---------- 1. Hero ---------- */
.lx-hero {
    padding: 150px 0 96px;
}

.lx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.lx-hero-title {
    margin: 0 0 22px;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--lx-ink);
}

.lx-hero-title .serif-italic {
    display: inline;
    font-weight: 400;
}

.lx-hero-lead {
    max-width: 54ch;
    margin: 0 0 32px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--lx-ink-soft);
}

.lx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.lx-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--lx-line);
}

.lx-hero-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 14px;
}

.lx-hero-facts li + li {
    padding-left: 14px;
    border-left: 1px solid var(--lx-line);
}

.lx-hero-facts b {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--lx-ink);
}

.lx-hero-facts span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--lx-ink-faint);
}

/* Learner home */
.lx-hero-visual {
    position: relative;
    padding: 28px 28px 44px;
    border-radius: 32px;
    background-color: var(--lx-forest);
    background-image:
        radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0) 50%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px, 28px 28px;
    box-shadow: 0 50px 90px -50px rgba(11, 43, 32, 0.7);
}

.lx-learner {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: var(--lx-surface);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}

.lx-learner-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #047857 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.lx-learner-who {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.lx-learner-who b {
    font-size: 0.98rem;
    color: var(--lx-ink);
}

.lx-learner-who small {
    font-size: 0.76rem;
    color: var(--lx-ink-faint);
}

.lx-streak {
    flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.lx-upnext {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--lx-mint);
}

.lx-ring {
    --p: 0;
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: conic-gradient(var(--lx-emerald) calc(var(--p) * 1%), #cfe9dc 0);
}

.lx-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--lx-mint);
}

.lx-ring span {
    position: relative;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--lx-ink);
}

.lx-upnext-text {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.lx-upnext-text small {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lx-emerald-deep);
}

.lx-upnext-text b {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--lx-ink);
}

.lx-upnext-text span {
    font-size: 0.74rem;
    color: var(--lx-ink-faint);
}

.lx-play {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--lx-forest);
    color: #6ee7b7;
}

.lx-week {
    padding: 14px;
    border: 1px solid var(--lx-line);
    border-radius: 16px;
}

.lx-week-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.78rem;
}

.lx-week-head b {
    color: var(--lx-ink);
}

.lx-week-head span {
    color: var(--lx-ink-faint);
}

.lx-week-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 8px;
    height: 76px;
}

.lx-week-bars span {
    position: relative;
    height: var(--h);
    border-radius: 6px;
    background: #bfe8d4;
}

.lx-week-bars span.is-today {
    background: var(--lx-emerald);
}

.lx-week-bars i {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 700;
    color: var(--lx-ink-faint);
}

.lx-due {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.lx-due li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.lx-due-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lx-due-dot.is-required {
    background: #f59e0b;
}

.lx-due-dot.is-done {
    background: var(--lx-emerald);
}

.lx-due-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--lx-ink);
}

.lx-due-when {
    flex: none;
    font-weight: 700;
    color: #b45309;
}

.lx-due-when.is-done {
    color: var(--lx-emerald-deep);
}

.lx-float-cert {
    position: absolute;
    right: -18px;
    bottom: -22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    background: #34d399;
    color: var(--lx-ink);
    box-shadow: 0 20px 36px -18px rgba(0, 0, 0, 0.45);
}

.lx-float-cert-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--lx-forest);
    color: #6ee7b7;
}

.lx-float-cert b,
.lx-float-cert small {
    display: block;
    line-height: 1.25;
}

.lx-float-cert b {
    font-size: 0.86rem;
    font-weight: 800;
}

.lx-float-cert small {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ---------- 2. How it works ---------- */
.lx-flow {
    padding: 96px 0;
}

.lx-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* Without the script every panel shows, so the tabs are only a label row. */
.lx-stages:not(.is-ready) {
    display: none;
}

.lx-stage {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--lx-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--lx-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 180ms var(--lx-ease-out), border-color 180ms var(--lx-ease-out), transform 160ms var(--lx-ease-out);
}

.lx-stage:active {
    transform: scale(0.98);
}

.lx-stage:focus-visible {
    outline: 2px solid var(--lx-emerald);
    outline-offset: 3px;
}

.lx-stage-no {
    grid-row: 1 / span 2;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: #b5e2cc;
}

.lx-stage-name {
    font-size: 1.08rem;
    font-weight: 800;
}

.lx-stage-hint {
    font-size: 0.8rem;
    color: var(--lx-ink-faint);
}

.lx-stage[aria-selected="true"] {
    border-color: var(--lx-forest);
    background: var(--lx-forest);
    color: #ffffff;
}

.lx-stage[aria-selected="true"] .lx-stage-no {
    color: #34d399;
}

.lx-stage[aria-selected="true"] .lx-stage-hint {
    color: rgba(232, 245, 238, 0.7);
}

@media (hover: hover) and (pointer: fine) {
    .lx-stage[aria-selected="false"]:hover {
        border-color: rgba(16, 185, 129, 0.45);
        background: #ffffff;
    }
}

.lx-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
    padding: 44px;
    border: 1px solid var(--lx-line);
    border-radius: 28px;
    background: var(--lx-surface);
    box-shadow: var(--lx-shadow);
}

.lx-panel + .lx-panel {
    margin-top: 20px;
}

.lx-panel[hidden] {
    display: none;
}

.lx-panel:focus-visible {
    outline: 2px solid var(--lx-emerald);
    outline-offset: 4px;
}

.lx-panel-copy h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--lx-ink);
}

.lx-panel-copy p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--lx-ink-soft);
}

.lx-panel-visual {
    min-width: 0;
    padding: 24px;
    border-radius: 22px;
    background-color: var(--lx-mint);
    background-image: radial-gradient(rgba(11, 43, 32, 0.12) 1px, transparent 1.3px);
    background-size: 18px 18px;
}

/* App sheet inside each stage */
.lx-sheet {
    padding: 18px;
    border: 1px solid var(--lx-line);
    border-radius: 18px;
    background: var(--lx-surface);
    box-shadow: 0 24px 40px -30px rgba(11, 43, 32, 0.45);
}

.lx-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--lx-line);
}

.lx-sheet-head b {
    display: block;
    font-size: 0.98rem;
    color: var(--lx-ink);
}

.lx-sheet-head small {
    font-size: 0.76rem;
    color: var(--lx-ink-faint);
}

.lx-tag {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.lx-tag.is-live {
    background: #d1fae5;
    color: var(--lx-emerald-deep);
}

.lx-tag.is-timer {
    background: #fff7ed;
    color: #c2410c;
    font-variant-numeric: tabular-nums;
}

.lx-outline {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-outline li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--lx-line);
    border-radius: 12px;
    font-size: 0.86rem;
}

.lx-kind {
    flex: none;
    width: 64px;
    padding: 3px 0;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lx-kind.is-video { background: #e0f2fe; color: #0369a1; }
.lx-kind.is-read { background: #f1f5f9; color: #334155; }
.lx-kind.is-task { background: #fef3c7; color: #b45309; }
.lx-kind.is-live { background: #d1fae5; color: var(--lx-emerald-deep); }

.lx-outline-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--lx-ink);
}

.lx-outline-time {
    flex: none;
    font-size: 0.78rem;
    color: var(--lx-ink-faint);
}

.lx-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--lx-ink-faint);
}

.lx-ghost-btn {
    padding: 6px 12px;
    border: 1px dashed rgba(16, 185, 129, 0.6);
    border-radius: 10px;
    color: var(--lx-emerald-deep);
    font-weight: 700;
}

.lx-rule {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fbf9;
    font-size: 0.84rem;
    line-height: 2.1;
    color: var(--lx-ink-soft);
}

.lx-rule-word {
    font-weight: 800;
    color: var(--lx-ink);
}

.lx-chip {
    padding: 3px 9px;
    border: 1px solid var(--lx-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--lx-ink);
    font-weight: 600;
    white-space: nowrap;
}

.lx-chip.is-strong {
    border-color: transparent;
    background: var(--lx-forest);
    color: #ffffff;
}

.lx-path {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-path li {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 12px;
    padding: 0 0 14px;
}

.lx-path li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--lx-line);
}

.lx-path li.is-done:not(:last-child)::after {
    background: var(--lx-emerald);
}

.lx-path-dot {
    grid-row: 1 / span 2;
    width: 18px;
    height: 18px;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
}

.is-done > .lx-path-dot {
    border-color: var(--lx-emerald);
    background: var(--lx-emerald);
}

.is-now > .lx-path-dot {
    border-color: var(--lx-emerald);
}

.lx-path b {
    font-size: 0.86rem;
    color: var(--lx-ink);
}

.lx-path small {
    font-size: 0.74rem;
    color: var(--lx-ink-faint);
}

.lx-question {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--lx-ink);
}

.lx-answers {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.lx-answers li {
    position: relative;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--lx-line);
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--lx-ink-soft);
}

.lx-answers li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transform: translateY(-50%);
}

.lx-answers li.is-picked {
    border-color: var(--lx-emerald);
    background: #ecfdf5;
    color: var(--lx-ink);
    font-weight: 600;
}

.lx-answers li.is-picked::before {
    border-color: var(--lx-emerald);
    background: radial-gradient(circle, var(--lx-emerald) 0 4px, #ffffff 4.5px);
}

.lx-progress-dots {
    display: flex;
    gap: 6px;
}

.lx-progress-dots span {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: #e2e8f0;
}

.lx-progress-dots .is-done {
    background: var(--lx-emerald);
}

.lx-progress-dots .is-now {
    background: #6ee7b7;
}

.lx-certs {
    display: grid;
    gap: 14px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.lx-certs li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: center;
}

.lx-certs b {
    font-size: 0.86rem;
    color: var(--lx-ink);
}

.lx-certs small {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--lx-ink-faint);
    font-variant-numeric: tabular-nums;
}

.lx-meter {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 8px;
    background: #e2e8f0;
    overflow: hidden;
}

.lx-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--lx-emerald);
}

.lx-meter.is-warn i {
    background: #f59e0b;
}

.lx-renew {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffbeb;
    font-size: 0.8rem;
    color: #92400e;
}

.lx-renew b {
    color: #78350f;
}

.lx-renew-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fef3c7;
}

/* ---------- 3. Skill map ---------- */
.lx-skills {
    padding: 96px 0;
    background: var(--lx-forest);
}

.lx-skills-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 64px;
}

.lx-skills .lx-eyebrow {
    color: #6ee7b7;
}

.lx-skills .lx-eyebrow-line {
    background: #34d399;
}

.lx-skills .lx-section-title {
    color: #ffffff;
}

.lx-skills .lx-section-title .serif-italic {
    background: none;
    -webkit-text-fill-color: #6ee7b7;
    color: #6ee7b7;
}

.lx-skills .lx-section-lead {
    color: rgba(232, 245, 238, 0.75);
}

.lx-skills .lx-points li {
    color: #e8f5ee;
}

.lx-skills .lx-points li::before {
    background-color: rgba(52, 211, 153, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.lx-matrix-card {
    min-width: 0;
    padding: 22px;
    border-radius: 24px;
    background: var(--lx-surface);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.lx-matrix-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.lx-matrix-head b {
    font-size: 1rem;
    color: var(--lx-ink);
}

.lx-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lx-ink-faint);
}

.lx-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lx-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.lx-matrix-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.lx-matrix {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 6px;
}

.lx-matrix thead th {
    padding: 0 4px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: var(--lx-ink-faint);
}

.lx-matrix thead th:first-child {
    text-align: left;
}

.lx-matrix tbody th {
    padding-right: 8px;
    text-align: left;
    white-space: nowrap;
}

.lx-matrix tbody th b,
.lx-matrix tbody th small {
    display: block;
}

.lx-matrix tbody th b {
    font-size: 0.84rem;
    color: var(--lx-ink);
}

.lx-matrix tbody th small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--lx-ink-faint);
}

.lx-matrix td {
    padding: 0;
}

/* The level is written in the cell for screen readers; the colour carries it on screen. */
.lx-cell {
    display: block;
    height: 36px;
    border-radius: 8px;
    font-size: 0;
    color: transparent;
}

.lv1 { background: #e8f5ee; }
.lv2 { background: #a7e3c6; }
.lv3 { background: #34d399; }
.lv4 { background: #047857; }

.lx-cell.is-gap {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.lx-matrix-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fffbeb;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #78350f;
}

.lx-matrix-note-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.lx-matrix-note-action {
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
    color: var(--lx-emerald-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 4. Roles ---------- */
.lx-roles {
    padding: 96px 0 40px;
}

.lx-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lx-role {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--lx-line);
    border-radius: 24px;
    background: var(--lx-surface);
}

.lx-role.is-featured {
    border-color: transparent;
    background: var(--lx-mint-strong);
}

.lx-role-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--lx-forest);
    color: #6ee7b7;
}

.lx-role h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--lx-ink);
}

.lx-role p {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--lx-ink-soft);
}

.lx-role ul {
    display: grid;
    gap: 10px;
    margin: auto 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--lx-line);
}

.lx-role li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--lx-ink);
}

.lx-role li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lx-emerald);
}

/* ---------- 5. Closing band ---------- */
.lx-closing {
    padding: 24px 0 96px;
}

.lx-closing-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
    padding: 48px 52px;
    border-radius: 32px;
    background-color: var(--lx-forest);
    background-image: radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 55%);
}

.lx-closing-copy {
    flex: 1 1 420px;
}

.lx-closing-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.lx-closing-copy .serif-italic {
    display: inline;
    background: none;
    -webkit-text-fill-color: #6ee7b7;
    color: #6ee7b7;
}

.lx-closing-copy p {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.6;
    color: rgba(232, 245, 238, 0.75);
}

.lx-closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lx-closing-primary,
.lx-closing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 160ms var(--lx-ease-out);
}

.lx-closing-primary:active,
.lx-closing-secondary:active {
    transform: scale(0.97);
}

.lx-closing-primary {
    background: #34d399;
    color: var(--lx-ink);
}

.lx-closing-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.lx-closing-primary:focus-visible,
.lx-closing-secondary:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .lx-hero-grid,
    .lx-skills-grid {
        gap: 44px;
    }

    .lx-panel {
        gap: 36px;
        padding: 32px;
    }
}

@media (max-width: 960px) {
    .lx-hero {
        padding: 130px 0 80px;
    }

    .lx-hero-grid,
    .lx-skills-grid,
    .lx-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .lx-hero-visual {
        width: 100%;
        max-width: 560px;
    }

    .lx-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .lx-hero-facts li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .lx-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lx-role-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .lx-flow,
    .lx-skills {
        padding: 72px 0;
    }

    .lx-roles {
        padding: 72px 0 24px;
    }

    .lx-section-head {
        margin-bottom: 28px;
    }

    .lx-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .lx-panel-visual {
        padding: 14px;
        border-radius: 18px;
    }

    .lx-closing {
        padding-bottom: 72px;
    }

    .lx-closing-card {
        padding: 36px 26px;
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    .lx-hero {
        padding: 112px 0 64px;
    }

    .lx-hero-actions > a {
        flex: 1 1 100%;
        justify-content: center;
    }

    .lx-hero-visual {
        padding: 16px 16px 36px;
        border-radius: 24px;
    }

    .lx-learner {
        padding: 14px;
        border-radius: 18px;
    }

    .lx-streak {
        display: none;
    }

    .lx-float-cert {
        right: 12px;
        bottom: -20px;
    }

    .lx-stage {
        padding: 14px;
        column-gap: 10px;
    }

    .lx-stage-no {
        font-size: 1.25rem;
    }

    .lx-stage-hint {
        display: none;
    }

    .lx-panel {
        padding: 18px;
    }

    .lx-panel-visual {
        padding: 10px;
    }

    .lx-sheet {
        padding: 14px;
    }

    /* Lesson rows: type and time on top, the name on its own line below. */
    .lx-outline li {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .lx-outline-name {
        order: 3;
        flex-basis: 100%;
    }

    .lx-outline-time {
        margin-left: auto;
    }

    .lx-play {
        display: none;
    }

    .lx-matrix-card {
        padding: 16px;
    }

    .lx-role {
        padding: 24px;
    }

    .lx-closing-actions,
    .lx-closing-actions > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lx-stage,
    .lx-closing-primary,
    .lx-closing-secondary {
        transition: none;
    }
}
