/* Table of contents */
.home-toc { display: none; }

@media (min-width: 1200px) {
    .home-toc {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0.75rem;
        overflow-y: auto;
        z-index: 200;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 0.5rem;
        padding: 0.4rem 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

.home-toc-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-medium);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.home-toc-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-light);
    flex-shrink: 0;
    transition: background 0.15s;
}

.home-toc-item:hover {
    color: var(--primary-purple);
    background: rgba(107, 70, 193, 0.06);
    text-decoration: none;
}

.home-toc-item:hover::before { background: var(--primary-purple); }

.home-toc-item.active {
    color: var(--primary-purple);
    background: rgba(107, 70, 193, 0.08);
    font-weight: 600;
}

.home-toc-item.active::before { background: var(--primary-purple); }

.home-full-bleed {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

@media (min-width: 768px) {
    .home-full-bleed {
        margin-left: -3rem;
        margin-right: -3rem;
    }
}

.home-hero, .home-delivers, .home-problem { background: #fff; }
.home-stats, .home-principles, .home-aml-required, .home-steps { background: #fefeff; }
.home-use-cases, .home-trusted { background: #fff; }
.home-commitment { background: #fefeff; }
.home-testimonials { background-size: cover; background-position: center; }

.home-hero,
.home-stats,
.home-delivers,
.home-principles,
.home-problem,
.home-aml-required,
.home-use-cases,
.home-steps,
.home-trusted,
.home-testimonials,
.home-commitment {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Shared image column */
.home-img-col { overflow: hidden; }
.home-img-col img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}
@media (max-width: 767px) {
    .hero-title { font-size: 2.5rem; }
}
.hero-title span { text-decoration: underline; text-underline-offset: 6px; }

.hero-tagline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    line-height: 1.3;
}

/* Shared across sections */
.home-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.home-text { color: var(--text-medium); }

.home-badge {
    display: inline-block;
    border: 1.5px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Stats */
.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}
.stat-label    { font-weight: 600; color: var(--text-dark); }
.stat-sublabel { font-size: 0.875rem; color: var(--text-medium); }

/* Delivers */
.home-hero .home-img-col,
.home-delivers .home-img-col {
    position: relative;
    align-self: stretch;
}

.home-hero .home-img-col img,
.home-delivers .home-img-col img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivers-feature { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.875rem; }
.delivers-icon    { width: 2.5rem; height: 2.5rem; flex-shrink: 0; margin-top: 0.125rem; }

/* Principles */
.principles-card--filled {
    background: var(--primary-purple);
    color: #fff;
    border-radius: 1rem;
}

.use-case-card {
    background: #5c6bc0;
    color: #fff;
    border: none !important;
    display: flex;
    flex-direction: column;
}

.use-case-icon {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
    flex-shrink: 0;
    padding: 0.5rem;
    box-sizing: content-box;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    filter: brightness(0) invert(1);
}

.use-case-for { font-size: 0.875rem; opacity: 0.85; }

/* Commitment */
.home-commitment .btn-outline-primary {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: transparent;
    border-radius: 0.5rem;
}

.home-commitment .btn-outline-primary:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.commitment-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.commitment-unsdgs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.commitment-unsdg-badge {
    height: 5rem;
    width: auto;
    object-fit: contain;
}

.commitment-badge {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

/* Testimonials */
.home-testimonials {
    position: relative;
    min-height: 60vh;
}

.home-testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.91);
    border-radius: inherit;
    z-index: 0;
}

.home-testimonials > * { position: relative; z-index: 1; }

.testimonial-quote {
    border-left: 4px solid var(--primary-purple);
    padding-left: 1.5rem;
    margin: 0;
    max-width: 600px;
}

.testimonial-author {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Trusted */
.home-trusted-img {
    position: relative;
    align-self: stretch;
}

.home-trusted-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.trusted-logo {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

/* Steps */
.steps-card {
    position: relative;
    padding-top: 2.5rem !important;
    border-radius: 1rem;
}

.steps-number {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.regulation-card {
    border-left: 4px solid var(--primary-purple) !important;
}

/* Problem */
.problem-quote { font-size: 1.125rem; color: var(--text-dark); }

.problem-circles {
    display: flex;
    justify-content: center;
    align-items: center;
}

.problem-circle {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.problem-circle--overlap {
    margin-left: -2rem;
    z-index: 2;
}

.problem-circle--overlap:last-child { z-index: 3; }

/* Right-pointing arrow at the left edge of each overlapping circle */
.problem-circle--overlap::before {
    content: '';
    position: absolute;
    left: -0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.75rem solid transparent;
    border-bottom: 0.75rem solid transparent;
    border-left: 0.9rem solid currentColor;
}

.problem-icon { width: 3.5rem; height: 3.5rem; object-fit: contain; }

.problem-circle-label { width: 8rem; }

@media (max-width: 575px) {
    .problem-circle {
        width: 7rem;
        height: 7rem;
    }

    .problem-circle--overlap {
        margin-left: -1.5rem;
    }

    .problem-circle--overlap::before {
        left: -0.65rem;
        border-top-width: 0.55rem;
        border-bottom-width: 0.55rem;
        border-left-width: 0.65rem;
    }

    .problem-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .problem-circle-label { width: 6rem; }
}