/* Landing page (home.html), from Figma "Landing" (14:94). */

/* Spacing comes from the layout gaps below. */
.cl-landing h1,
.cl-landing h2,
.cl-landing h3,
.cl-landing p {
    margin: 0;
}

/* Gray text for descriptions. */
.cl-landing-text {
    color: var(--cl-gray-700);
}

/* Section heading and intro text. */
.cl-landing-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.cl-landing-intro {
    font: var(--cl-text-body-lg);
    color: var(--cl-gray-700);
}

/* Hero: text and example side by side, stacked on small screens. */

.cl-landing-hero {
    border-bottom: 1px solid var(--cl-gray-200);
    background: var(--cl-gray-50);
}

.cl-landing-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-block: 72px 80px;
}

.cl-landing-hero-text {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--cl-space-6);
}

.cl-landing-title {
    max-width: 540px;
}

.cl-landing-lead {
    max-width: 520px;
}

.cl-landing-note {
    max-width: 520px;
}

/* Example progress card. */

.cl-landing-example {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.cl-landing-card {
    overflow: hidden;
    border: 1px solid var(--cl-gray-200);
    border-radius: 12px;
    background: var(--cl-gray-0);
}

.cl-landing-card-head {
    display: flex;
    flex-direction: column;
    gap: var(--cl-space-3);
    padding: var(--cl-space-5);
    border-bottom: 1px solid var(--cl-gray-200);
}

.cl-landing-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

/* Bootstrap progress bar with Figma sizes and colors. */
.cl-landing-progress {
    --bs-progress-height: 6px;
    --bs-progress-border-radius: 3px;
    --bs-progress-bg: var(--cl-gray-150);
    --bs-progress-bar-bg: var(--cl-success);
}

/* Example steps: marker and line on the left, text on the right. */

.cl-landing-steps {
    margin: 0;
    padding: 6px 0 10px;
    list-style: none;
}

.cl-landing-step {
    display: flex;
    gap: 14px;
    padding-inline: var(--cl-space-5);
}

.cl-landing-rail {
    width: 28px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cl-landing-marker {
    --cl-icon-size: 16px;
    width: 28px;
    height: 28px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--cl-space-3);
    border-radius: 50%;
    background: var(--cl-gray-0);
}

/* Line to the next step. */
.cl-landing-line {
    flex: 1;
    width: 2px;
    min-height: 14px;
    margin-top: var(--cl-space-1);
    background: var(--cl-gray-200);
}

.cl-landing-step-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0 14px;
}

.cl-landing-step-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    font-weight: 600;
}

/* Validated step. */
.cl-landing-step-done .cl-landing-marker {
    background: var(--cl-success);
    color: var(--cl-gray-0);
}

.cl-landing-step-done .cl-landing-line {
    background: var(--cl-success);
}

/* Step to rework. */
.cl-landing-step-rework .cl-landing-marker {
    border: 2px solid var(--cl-warning);
    color: var(--cl-warning);
}

/* Locked step. */
.cl-landing-step-locked .cl-landing-marker {
    --cl-icon-size: 14px;
    border: 1.5px dashed var(--cl-gray-500);
    color: var(--cl-gray-500);
}

/* How it works: four numbered steps. */

.cl-landing-how {
    display: flex;
    flex-direction: column;
    gap: var(--cl-space-10);
    padding-block: 88px 72px;
}

.cl-landing-how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--cl-space-8);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl-landing-how-steps li {
    display: flex;
    flex-direction: column;
    gap: var(--cl-space-2);
    padding-top: 18px;
    border-top: 2px solid var(--cl-gray-900);
}

.cl-landing-how-number {
    font-weight: 700;
    color: var(--cl-accent);
    font-variant-numeric: tabular-nums;
}

/* Learner space: three blocks with thin dividers. */

.cl-landing-space {
    border-block: 1px solid var(--cl-gray-200);
    background: var(--cl-gray-50);
}

.cl-landing-space-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-block: 72px;
}

.cl-landing-space-title {
    max-width: 640px;
}

/* The 1px gap shows the gray background as dividers. */
.cl-landing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--cl-gray-200);
    background: var(--cl-gray-200);
}

.cl-landing-feature {
    display: flex;
    flex-direction: column;
    gap: var(--cl-space-3);
    padding: 28px;
    background: var(--cl-gray-0);
}

.cl-landing-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cl-gray-200);
    border-radius: var(--cl-radius);
    color: var(--cl-accent);
}

/* For administrators: text and checklist side by side. */

.cl-landing-admins {
    border-top: 1px solid var(--cl-gray-200);
}

.cl-landing-admins-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 72px;
    padding-block: 80px;
}

.cl-landing-admins-text {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cl-landing-checklist {
    flex: 1.4 1 420px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl-landing-checklist li {
    display: flex;
    gap: 14px;
    padding-block: var(--cl-space-4);
    border-bottom: 1px solid var(--cl-gray-200);
}

.cl-landing-checklist li:last-child {
    border-bottom: 0;
}

.cl-landing-checklist .cl-icon {
    margin-top: 2px;
    color: var(--cl-accent);
}

/* Three columns from tablets up. */
@media (min-width: 768px) {
    .cl-landing-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Phones: less vertical space between sections. */
@media (max-width: 767.98px) {
    .cl-landing-hero-inner,
    .cl-landing-how,
    .cl-landing-space-inner,
    .cl-landing-admins-inner {
        padding-block: var(--cl-space-12);
    }
}

@media (min-width: 1200px) {
    .cl-landing-hero-inner {
        display: grid;
        grid-template-columns: 576px 520px;
    }

    .cl-landing-admins-inner {
        display: grid;
        grid-template-columns: 420px 660px;
    }
}
