/**
 * Production landing page — full-bleed marketing layout (hero → audience → scoped map explorer).
 */

.proto-landing {
    --proto-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --proto-gutter: clamp(1rem, 4vw, 3.5rem);
    --proto-inner-wide: min(100% - 2 * var(--proto-gutter), var(--content-max-marketing));
    --proto-hero-min: clamp(32rem, 88vh, 52rem);
    --proto-map-min: clamp(11rem, 34vh, 18rem);
    --proto-explorer-map-h: clamp(24rem, 52vh, 42rem);

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

@media (max-width: 575.98px) {
    .proto-landing {
        --proto-hero-min: clamp(22rem, 70vh, 36rem);
        --proto-map-min: min(32vh, 12rem);
        --proto-explorer-map-h: min(42vh, 18rem);
    }
}

@media (max-height: 520px) {
    .proto-landing {
        --proto-hero-min: min(70vh, 22rem);
        --proto-map-min: min(40vh, 10rem);
        --proto-explorer-map-h: min(48vh, 14rem);
    }
}

/* Edge-to-edge landing (navbar is full width; content must match). */
.content > .proto-landing {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* —— Shared buttons —— */
.proto-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.45rem;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s var(--proto-ease), box-shadow 0.15s var(--proto-ease), background 0.15s ease;
    white-space: nowrap;
}

button.proto-landing-btn {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.proto-landing-btn:hover {
    transform: translateY(-1px);
}

.proto-landing-btn--primary {
    color: #11204d;
    background: #fde047;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.proto-landing-btn--primary:hover {
    background: #facc15;
    color: #11204d;
}

.proto-landing-btn--dark {
    color: #fff;
    background: var(--color-primary-600, #2f55cf);
    box-shadow: 0 6px 20px rgba(47, 85, 207, 0.28);
}

.proto-landing-btn--dark:hover {
    background: var(--color-primary-700, #2543a3);
    color: #fff;
}

.proto-landing-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

.proto-landing-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* —— Hero (full bleed) —— */
.proto-landing-hero {
    position: relative;
    width: 100%;
    min-height: var(--proto-hero-min);
    display: flex;
    align-items: center;
    color: #fff;
}

.proto-landing-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg,
            rgba(17, 32, 77, 0.92) 0%,
            rgba(47, 85, 207, 0.78) 42%,
            rgba(21, 128, 61, 0.62) 100%),
        url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2400&q=80") center / cover no-repeat;
}

.proto-landing-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 12% 35%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(180deg, transparent 70%, rgba(17, 32, 77, 0.35) 100%);
    pointer-events: none;
}

.proto-landing-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: clamp(3rem, 8vh, 5rem) var(--proto-gutter);
}

.proto-landing-hero__grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
    width: 100%;
    max-width: var(--proto-inner-wide);
    margin: 0 auto;
}

.proto-landing-hero__grid--solo {
    max-width: 52rem;
}

.proto-landing-hero__grid--with-pwa {
    max-width: var(--proto-inner-wide);
}

@media (min-width: 992px) {
    .proto-landing-hero__grid--with-pwa {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
    }
}

/* —— PWA / QR placeholder (hero) —— */
.proto-landing-pwa-card {
    justify-self: center;
    width: min(100%, 19rem);
    padding: 1.25rem 1.25rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(17, 32, 77, 0.28);
    color: #fff;
}

.proto-landing-pwa-card__header {
    margin-bottom: 1rem;
}

.proto-landing-pwa-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.proto-landing-pwa-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.proto-landing-pwa-card__lead {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.proto-landing-pwa-card__qr-wrap {
    display: flex;
    justify-content: center;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 2px dashed rgba(17, 32, 77, 0.18);
}

.proto-landing-pwa-card__qr {
    display: block;
    width: 10.5rem;
    height: 10.5rem;
}

.proto-landing-pwa-card__footnote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
}

.proto-landing-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.proto-landing-hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 16ch;
}

@media (min-width: 992px) {
    .proto-landing-hero__title {
        max-width: 14ch;
    }
}

.proto-landing-hero__title-accent {
    display: block;
    background: linear-gradient(92deg, #86efac 0%, #fde047 55%, #fcd34d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.proto-landing-hero__lead {
    font-size: clamp(1.02rem, 1.8vw, 1.28rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 38rem;
    margin-bottom: 2rem;
}

.proto-landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* —— Vision — audience cards —— */
.proto-landing-vision {
    width: 100%;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--proto-gutter);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid rgba(65, 105, 233, 0.08);
}

.proto-landing-vision__shell {
    width: 100%;
    max-width: var(--proto-inner-wide);
    margin: 0 auto;
}

.proto-audience-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.5vw, 1rem);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 767.98px) {
    .proto-audience-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-left: calc(-1 * var(--proto-gutter));
        margin-right: calc(-1 * var(--proto-gutter));
        padding: 0 var(--proto-gutter) 0.35rem;
    }
}

.proto-audience-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-height: 7.5rem;
    padding: 1.1rem 1.15rem;
    text-align: left;
    border: 2px solid rgba(65, 105, 233, 0.12);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
    --proto-audience-accent: var(--color-primary-500, #4169E9);
}

@media (max-width: 767.98px) {
    .proto-audience-card {
        min-width: 11.5rem;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

.proto-audience-card:hover {
    border-color: color-mix(in srgb, var(--proto-audience-accent) 45%, #fff);
}

.proto-audience-card.is-active {
    border-color: var(--proto-audience-accent);
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--proto-audience-accent) 10%, #fff),
            #fff);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--proto-audience-accent) 18%, transparent);
    transform: translateY(-2px);
}

.proto-audience-card.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--proto-audience-accent);
}

.proto-audience-card__icon {
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--color-neutral-100, #f5f5f5);
    color: var(--proto-audience-accent);
    font-size: 1.1rem;
}

.proto-audience-card.is-active .proto-audience-card__icon {
    background: var(--proto-audience-accent);
    color: #fff;
}

.proto-audience-card__label {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary, #212529);
}

.proto-audience-card__hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--color-text-secondary, #757575);
}

.proto-audience-detail {
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 1.1rem;
    border: 1px solid rgba(65, 105, 233, 0.1);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px rgba(17, 32, 77, 0.06);
    position: relative;
    overflow: hidden;
}

.proto-audience-detail::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        var(--proto-audience-accent, var(--color-primary-500, #4169E9)) 0%,
        color-mix(in srgb, var(--proto-audience-accent, #4169E9) 35%, transparent) 100%
    );
}

.proto-landing-vision[data-audience] {
    --proto-audience-accent: #4169E9;
}

.proto-landing-vision[data-audience="personal"] {
    background:
        radial-gradient(ellipse 80% 50% at 15% 0%, color-mix(in srgb, #7c3aed 8%, transparent), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.proto-landing-vision[data-audience="company"] {
    background:
        radial-gradient(ellipse 80% 50% at 85% 0%, color-mix(in srgb, #0d9488 8%, transparent), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.proto-landing-vision[data-audience="vision"] {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, #4169E9 8%, transparent), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.proto-audience-detail__title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
}

.proto-audience-detail__tagline {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--proto-audience-accent, var(--color-primary-500, #4169E9));
}

.proto-audience-detail__body-wrap {
    margin: 0 0 1rem;
    max-width: 52rem;
}

.proto-audience-detail__body-wrap .proto-audience-detail__body:last-child {
    margin-bottom: 0;
}

.proto-audience-detail__body {
    font-size: clamp(0.9875rem, 1.4vw, 1.0625rem);
    line-height: 1.65;
    color: var(--color-text-secondary, #616161);
    margin: 0 0 0.85rem;
    max-width: none;
}

.proto-audience-detail__points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

@media (min-width: 768px) {
    .proto-audience-detail__points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1.5rem;
    }
}

.proto-audience-detail__points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--color-text-primary, #212529);
}

.proto-audience-detail__point--linked {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--proto-audience-accent, #4169E9) 5%, #fff);
    border: 1px solid color-mix(in srgb, var(--proto-audience-accent, #4169E9) 14%, #fff);
}

@media (min-width: 768px) {
    .proto-audience-detail__point--linked {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.proto-audience-detail__point-text {
    flex: 1 1 auto;
    min-width: 0;
}

.proto-audience-detail__point-scope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    border: none;
    background: var(--proto-scope-accent, #4169E9);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--proto-scope-accent, #4169E9) 32%, transparent);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

@media (min-width: 768px) {
    .proto-audience-detail__point-scope {
        width: auto;
        flex-shrink: 0;
    }
}

.proto-audience-detail__point-scope-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
}

.proto-audience-detail__point-scope-label {
    flex: 1 1 auto;
    text-align: left;
}

.proto-audience-detail__point-scope-arrow {
    flex-shrink: 0;
    font-size: 1.15rem;
    opacity: 0.92;
}

.proto-audience-detail__point-scope:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--proto-scope-accent, #4169E9) 38%, transparent);
}

.proto-audience-detail__point-scope:active {
    transform: translateY(0);
}

.proto-audience-detail__point-scope--demo .proto-audience-detail__point-scope-arrow {
    display: none;
}

#gtCompanyCardModal .modal-body {
    padding-top: 0.75rem;
}

.proto-audience-detail__points li:not(.proto-audience-detail__point--linked)::before {
    content: "✓";
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--proto-audience-accent, var(--color-primary-500, #4169E9));
}

.proto-audience-detail[data-audience="vision"] {
    --proto-audience-accent: #4169E9;
}

.proto-audience-detail[data-audience="personal"] {
    --proto-audience-accent: #7c3aed;
}

.proto-audience-detail[data-audience="company"] {
    --proto-audience-accent: #0d9488;
}

.proto-audience-detail__point--linked::before {
    content: none;
}

/* Connector between vision and explorer */
.proto-landing-vision__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-top: clamp(1rem, 2.5vw, 1.75rem);
    padding-bottom: 0.25rem;
    color: var(--proto-audience-accent, var(--color-primary-500, #4169E9));
}

.proto-landing-vision__connector-line {
    width: 2px;
    height: clamp(1.25rem, 3vw, 2rem);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        var(--proto-audience-accent, #4169E9) 0%,
        color-mix(in srgb, var(--proto-audience-accent, #4169E9) 20%, transparent) 100%
    );
}

.proto-landing-vision__connector-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    background: color-mix(in srgb, var(--proto-audience-accent, #4169E9) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--proto-audience-accent, #4169E9) 25%, #fff);
    animation: proto-vision-connector-bob 2.4s ease-in-out infinite;
}

@keyframes proto-vision-connector-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

/* —— Explorer (background full bleed; content aligned with vision) —— */
.proto-landing-explorer {
    width: 100%;
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(65, 105, 233, 0.07), transparent 55%),
        linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
}

.proto-landing-explorer__shell {
    width: 100%;
    max-width: var(--proto-inner-wide);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--proto-gutter) clamp(2rem, 4vw, 2.75rem);
}

.proto-explorer-panel {
    --proto-scope-accent: var(--color-primary-500, #4169E9);
    width: 100%;
    max-width: none;
}

.proto-explorer-body {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.1rem);
    width: 100%;
    max-width: none;
}

@media (min-width: 992px) {
    .proto-explorer-body {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(0.5rem, 1vw, 0.85rem);
    }
}

.proto-explorer-nav {
    min-width: 0;
}

@media (min-width: 992px) {
    .proto-explorer-nav {
        flex: 0 0 13rem;
        width: 13rem;
        padding-top: 0.35rem;
    }
}

/* Opened scope container: copy left, map right */
.proto-explorer-stage {
    --proto-scope-accent: var(--color-primary-500, #4169E9);
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 1.1rem;
    border: 2px solid color-mix(in srgb, var(--proto-scope-accent) 28%, #e8ecf7);
    background: #fff;
    box-shadow:
        0 4px 6px rgba(17, 32, 77, 0.04),
        0 20px 48px rgba(17, 32, 77, 0.08);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.proto-explorer-stage--pulse {
    animation: proto-stage-scope-pulse 0.55s var(--proto-ease);
}

@keyframes proto-stage-scope-pulse {
    0% {
        box-shadow:
            0 4px 6px rgba(17, 32, 77, 0.04),
            0 20px 48px rgba(17, 32, 77, 0.08),
            inset 0 0 0 0 color-mix(in srgb, var(--proto-scope-accent) 0%, transparent);
    }

    35% {
        box-shadow:
            0 4px 6px rgba(17, 32, 77, 0.04),
            0 20px 48px rgba(17, 32, 77, 0.08),
            inset 0 0 0 3px color-mix(in srgb, var(--proto-scope-accent) 40%, transparent);
    }

    100% {
        box-shadow:
            0 4px 6px rgba(17, 32, 77, 0.04),
            0 20px 48px rgba(17, 32, 77, 0.08);
    }
}

.proto-explorer-stage__split {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
}

@media (min-width: 992px) {
    .proto-explorer-stage__split {
        display: grid;
        grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
        grid-template-rows: 1fr;
        align-items: stretch;
        min-height: var(--proto-explorer-map-h);
    }
}

.proto-explorer-aside {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

@media (min-width: 992px) {
    .proto-explorer-aside {
        border-right: 1px solid rgba(65, 105, 233, 0.1);
    }
}

.proto-explorer-copy {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    flex: 0 0 auto;
}

.proto-explorer-aside .proto-scope-stats {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.65rem clamp(1rem, 2vw, 1.25rem);
    border-top: 1px solid var(--color-neutral-200, #eee);
}

.proto-explorer-cta {
    flex: 0 0 auto;
    padding: 0.85rem clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.15rem);
    border-top: 1px solid rgba(65, 105, 233, 0.1);
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.35) 0%, #fff 100%);
}

.proto-explorer-map-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

@media (min-width: 992px) {
    .proto-explorer-map-col {
        height: 100%;
    }
}

.proto-explorer-map-stage {
    flex: 1 1 auto;
    min-height: clamp(16rem, 40vh, 22rem);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 992px) {
    .proto-explorer-map-stage {
        min-height: 0;
        height: 100%;
    }

    .proto-explorer-map-stage .proto-scope-map-shell {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

.proto-landing-explorer__intro h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.45rem;
}

.proto-landing-explorer__intro-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--proto-audience-accent, var(--color-primary-600, #2f55cf));
}

.proto-landing-explorer__intro p,
.proto-landing-explorer__intro-body {
    color: var(--color-text-secondary, #616161);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.proto-landing-explorer__intro--linked {
    animation: proto-explorer-intro-linked 0.75s var(--proto-ease);
}

@keyframes proto-explorer-intro-linked {
    0% {
        box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--proto-audience-accent, #4169E9) 0%, transparent);
    }

    40% {
        box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--proto-audience-accent, #4169E9) 35%, transparent);
    }

    100% {
        box-shadow: inset 0 0 0 0 transparent;
    }
}

@media (min-width: 992px) {
    .proto-landing-explorer__intro {
        margin-bottom: 0.25rem;
        max-width: none;
    }
}

.proto-landing-explorer__intro {
    border-radius: 0.75rem;
    padding: 0.35rem 0.25rem;
    margin-inline: -0.25rem;
}

/* Scope nav */
.proto-scope-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 991.98px) {
    .proto-scope-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}

.proto-scope-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
    text-align: left;
    border: 2px solid rgba(65, 105, 233, 0.12);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease, background 0.2s ease;
    scroll-snap-align: start;
    --proto-scope-accent: var(--color-primary-500, #4169E9);
}

@media (max-width: 991.98px) {
    .proto-scope-card {
        min-width: 11.75rem;
        flex-shrink: 0;
    }
}

.proto-scope-card:hover {
    border-color: var(--color-primary-300, #8fa6f6);
    background: #fff;
}

.proto-scope-card.is-active {
    border-color: var(--proto-scope-accent);
    background: linear-gradient(90deg,
            color-mix(in srgb, var(--proto-scope-accent) 12%, #fff) 0%,
            #fff 55%);
    box-shadow:
        0 10px 32px color-mix(in srgb, var(--proto-scope-accent) 22%, transparent),
        inset 4px 0 0 var(--proto-scope-accent);
    transform: translateY(-1px);
}

.proto-scope-card.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--proto-scope-accent);
}

@media (min-width: 992px) {
    .proto-scope-card.is-active::after {
        content: "";
        position: absolute;
        right: -0.65rem;
        top: 50%;
        width: 0.65rem;
        height: 3px;
        border-radius: 999px;
        background: var(--proto-scope-accent);
        transform: translateY(-50%);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--proto-scope-accent) 25%, transparent);
        z-index: 1;
    }

    .proto-explorer-nav .proto-scope-card {
        width: 100%;
    }
}

.proto-scope-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 1.15rem;
    background: var(--color-neutral-100, #f5f5f5);
    color: var(--color-primary-600, #2f55cf);
}

.proto-scope-card.is-active .proto-scope-card__icon {
    background: var(--proto-scope-accent);
    color: #fff;
}

.proto-scope-card > span:not(.proto-scope-card__icon) {
    flex: 1 1 0;
    min-width: 0;
}

.proto-scope-card__label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    hyphens: auto;
}

.proto-scope-card__hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary, #757575);
    line-height: 1.35;
}

/* Explorer panel + map */
.proto-scope-panel {
    width: 100%;
}

.proto-explorer-panel.proto-scope-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.proto-scope-panel__mission {
    min-width: 0;
    padding: 0;
    margin-bottom: 0;
}

.proto-scope-panel__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--proto-scope-accent, var(--color-primary-600, #2f55cf));
}

@media (min-width: 992px) {
    .proto-scope-panel {
        padding: 0;
    }
}

.proto-scope-panel__title {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.proto-scope-panel__body {
    font-size: 0.9875rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #616161);
    margin: 0 0 0.65rem;
}

.proto-scope-panel__placeholder {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-secondary, #616161);
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--color-neutral-50, #fafafa);
    border-left: 3px solid var(--proto-scope-accent, var(--color-primary-500, #4169E9));
}

.proto-scope-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0.65rem 0 0;
    border-top: 1px solid var(--color-neutral-200, #eee);
}

.proto-scope-panel__cta {
    margin-top: 0;
    padding-top: 0;
}

.proto-scope-stat {
    min-width: 5.5rem;
}

.proto-scope-stat__value {
    display: block;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-primary-700, #2543a3);
    font-variant-numeric: tabular-nums;
}

.proto-scope-stat__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary, #757575);
    margin-top: 0.2rem;
}

.proto-scope-map-shell {
    position: relative;
    min-height: var(--proto-map-min);
    border-radius: 0.9rem;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--proto-scope-accent, #4169E9) 35%, #eef2f7);
    background: var(--color-neutral-100, #eef2f7);
    --proto-scope-accent: var(--color-primary-500, #4169E9);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.proto-scope-map-shell--pulse {
    animation: proto-map-scope-pulse 0.55s var(--proto-ease);
}

@keyframes proto-map-scope-pulse {
    0% {
        box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--proto-scope-accent) 0%, transparent);
    }

    35% {
        box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--proto-scope-accent) 45%, transparent);
    }

    100% {
        box-shadow: inset 0 0 0 0 transparent;
    }
}

/* Active scope chip on map (above Leaflet controls, clear of zoom top-left) */
.proto-map-scope-chip {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    left: auto;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: calc(100% - 1.7rem);
    padding: 0.5rem 0.85rem 0.5rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--proto-scope-accent, #4169E9);
    box-shadow: 0 8px 28px rgba(17, 32, 77, 0.14);
    pointer-events: none;
    --proto-scope-accent: var(--color-primary-500, #4169E9);
}

.proto-map-scope-chip__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--proto-scope-accent);
    color: #fff;
    font-size: 0.95rem;
}

.proto-map-scope-chip__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.proto-map-scope-chip__label {
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-primary, #212529);
}

.proto-map-scope-chip__count {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--proto-scope-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proto-scope-map {
    width: 100%;
    height: 100%;
    min-height: var(--proto-map-min);
}

.proto-explorer-map-stage .proto-scope-map {
    min-height: 0;
}

.proto-scope-map-empty {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 32, 77, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(17, 32, 77, 0.1);
    z-index: 500;
    pointer-events: none;
}

.proto-scope-map-empty.is-visible {
    display: flex;
}

.proto-scope-map-empty p {
    margin: 0;
    color: var(--color-text-secondary, #616161);
    font-size: 0.875rem;
    line-height: 1.35;
    max-width: none;
}

.proto-scope-map-empty > i {
    flex-shrink: 0;
    font-size: 1.15rem;
    opacity: 0.85;
}

/* Map popups */
.proto-map-popup {
    font-size: 0.875rem;
    line-height: 1.4;
}

.proto-map-popup strong {
    display: block;
    margin-bottom: 0.25rem;
}

.proto-map-popup a {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 600;
}

.proto-map-popup__spatial-tag {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
}

.proto-map-popup__supplier-type {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary, #757575);
}

/* Footer (full bleed) */
.proto-landing-footer {
    width: 100%;
    padding: clamp(2.5rem, 6vw, 4rem) var(--proto-gutter);
    text-align: center;
    background:
        linear-gradient(135deg, var(--color-primary-900, #11204d) 0%, #1e3a8a 100%);
    color: rgba(255, 255, 255, 0.88);
}

.proto-landing-footer__inner {
    max-width: 40rem;
    margin: 0 auto;
}

.proto-landing-footer h2 {
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.proto-landing-footer p {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.proto-landing-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .proto-landing-footer__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .proto-landing-footer__actions .proto-landing-btn {
        width: 100%;
    }

    .proto-landing-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .proto-landing-hero__actions .proto-landing-btn {
        width: 100%;
        justify-content: center;
    }
}
