/* Ndola Skills PIS - public landing page */

:root {
    --navy-deep: #0E2F4B;
    --navy: #123A5C;
    --blue: #2E75B6;
    --gold: #F0A500;
    --gold-soft: #FFD77A;
    --paper: #FBF8F1;
    --ink: #17283A;
    --ink-muted: #55657A;
    --line: #E4DDCD;
    --white: #FFFFFF;
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body.landing {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure {
    margin: 0;
    padding: 0;
}

ol, ul {
    list-style: none;
}

a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: min(1160px, 100%);
    margin-inline: auto;
    padding-inline: 32px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
    border-radius: 6px;
}

.skip-link:focus {
    top: 12px;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    color: var(--white);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(14, 47, 75, 0.96);
    box-shadow: 0 6px 24px rgba(8, 28, 46, 0.25);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.15;
}

.site-brand img {
    width: 40px;
    height: 40px;
    padding: 3px;
    object-fit: contain;
    background: var(--white);
    border-radius: 50%;
}

.site-brand small {
    display: block;
    font-family: var(--body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.98rem;
}

.site-nav a:not(.btn-sign-in):hover {
    color: var(--gold-soft);
}

.site-nav .btn-sign-in {
    padding: 8px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav .btn-sign-in:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy-deep);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 148px 0 104px;
    background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 55%, #1B5687 100%);
    color: var(--white);
}

.hero-waves {
    position: absolute;
    top: 0;
    right: -4%;
    width: 58%;
    height: 100%;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--gold-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

.eyebrow-dark {
    color: #A66F00;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.35rem, 5vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.hero-lead {
    max-width: 34em;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.btn-gold,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    box-shadow: 0 10px 24px rgba(240, 165, 0, 0.25);
}

.btn-gold:hover {
    background: #FFB81F;
    transform: translateY(-2px);
}

.btn-gold i {
    transition: transform 0.2s ease;
}

.btn-gold:hover i {
    transform: translateX(3px);
}

.btn-ghost {
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sample report form */
.report-card {
    padding: 26px 28px 22px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(4, 20, 34, 0.45);
    transform: rotate(1.2deg);
}

.report-card figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
}

.report-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--navy);
}

.report-tag {
    padding: 2px 10px;
    background: #F3E7C8;
    color: #755000;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.report-meta dt {
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.report-meta dd {
    font-weight: 600;
    font-size: 0.95rem;
}

.report-marks li {
    display: grid;
    grid-template-columns: 7.2em minmax(30px, 1fr) 2em 5.2em;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.93rem;
}

.report-subject {
    line-height: 1.2;
}

.report-bar {
    height: 6px;
    background: #ECE6D8;
    border-radius: 3px;
    overflow: hidden;
}

.report-bar span {
    display: block;
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.report-score {
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.report-grade {
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.15;
}

.report-stamp {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #1C6B4A;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sections */
.journey,
.features {
    padding: 96px 0;
}

.journey h2,
.features h2,
.closing h2 {
    max-width: 19em;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--navy);
    text-wrap: balance;
}

h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--navy);
}

/* Journey: a connected timeline */
.journey-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 56px;
}

.journey-steps::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 24px;
    right: calc((100% - 96px) / 4 - 24px);
    border-top: 2px dashed #D3C7AC;
}

.journey-steps li {
    position: relative;
}

.step-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    background: var(--navy);
    color: var(--gold-soft);
    border-radius: 50%;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 0 0 8px var(--paper);
}

.journey-steps li:last-child .step-number {
    background: var(--gold);
    color: var(--navy-deep);
}

.journey-steps p {
    margin-top: 8px;
    color: var(--ink-muted);
}

/* Features */
.features {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin-top: 52px;
}

.feature {
    grid-column: span 2;
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-wide {
    grid-column: span 3;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: #D3C7AC;
    box-shadow: 0 14px 30px rgba(18, 58, 92, 0.1);
}

.feature > i {
    display: block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 1.5rem;
}

.feature p {
    margin-top: 8px;
    color: var(--ink-muted);
}

/* Closing band */
.closing {
    padding: 64px 0;
    background: var(--navy-deep);
}

.closing-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.closing h2 {
    color: var(--white);
}

/* Footer */
.site-footer {
    padding: 20px 0;
    background: #0A2439;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
}

/* Scroll reveal; only applied once landing.js has confirmed it can undo it */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js-reveal .feature.reveal.is-visible:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        padding: 124px 0 80px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .report-card {
        width: min(520px, 100%);
    }

    .journey-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 40px;
    }

    .journey-steps::before {
        top: 24px;
        bottom: 24px;
        left: 23px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed #D3C7AC;
    }

    .journey-steps li {
        padding-left: 72px;
    }

    .step-number {
        position: absolute;
        left: 0;
        top: 0;
    }

    .feature,
    .feature-wide {
        grid-column: span 3;
    }

    .feature:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding-inline: 16px;
    }

    .site-nav a:not(.btn-sign-in) {
        display: none;
    }

    .site-brand small {
        display: none;
    }

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

    .report-card {
        padding: 20px 18px 18px;
        transform: none;
    }

    .report-marks li {
        grid-template-columns: minmax(0, 1fr) 2em 5.2em;
    }

    .report-bar {
        display: none;
    }

    .journey,
    .features {
        padding: 68px 0;
    }

    .feature,
    .feature-wide {
        grid-column: 1 / -1;
    }

    .closing-inner .btn-gold {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}
