﻿:root {
    --purple: #461177;
    --ink: #24192d;
    --muted: #81768a
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Manrope, Cairo, sans-serif
}

button {
    font: inherit;
    cursor: pointer
}

a {
    color: inherit
}

.header {
    height: 84px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #f1edf5
}

.header img {
    display: block;
    width: 135px;
    height: 52px;
    object-fit: contain
}

.header-note {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--muted)
}

#lang {
    background: white;
    color: var(--purple);
    border: 1px solid #e6dcec;
    padding: 9px 18px;
    border-radius: 30px
}

.hero {
    /* min-height: calc(100svh - 84px); */
    padding: 45px 24px 22px;
    background: #fff
}

.hero-copy {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2rem auto;
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--purple)
}

h1 {
    font-size: clamp(35px, 4vw, 62px);
    letter-spacing: -2.5px;
    line-height: 1.15;
    margin: 15px 0
}

h1 em {
    font-style: normal;
    color: var(--purple)
}

.hero-copy>p:last-child {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto
}

.map-explorer {
    position: relative;
    max-width: 1500px;
    height: clamp(410px, 43vw, 620px);
    margin: 15px auto 0;
    direction: ltr
}

.map-wrap {
    position: absolute;
    width: 76%;
    max-width: 1050px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

#country-map {
    width: 100%;
    display: block;
    overflow: visible
}

.country-region {
    fill: transparent;
    stroke: transparent;
    stroke-width: 4;
    cursor: pointer;
    transition: fill .2s, stroke .2s;
    pointer-events: all
}

.country-region:hover,
.country-region.active,
.country-region:focus-visible {
    fill: #a164e64a;
    stroke: #b88ae8;
    outline: none;
    filter: drop-shadow(0 0 6px #a578d8)
}

.connector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    opacity: 0
}

.map-explorer.has-selection .connector {
    opacity: 1
}

.connector path {
    fill: none;
    stroke-linecap: round
}

.connector-base {
    stroke: #a176d1;
    stroke-width: 1.5;
    opacity: .6
}

.connector-light {
    stroke: #a667ee;
    stroke-width: 3;
    stroke-dasharray: 7 93;
    filter: drop-shadow(0 0 5px #a569ee);
    animation: light-travel 2.5s linear infinite
}

.connector circle {
    fill: white;
    stroke: #9561ce;
    stroke-width: 3
}

.country-panel {
    position: absolute;
    right: 0;
    top: 25%;
    width: 245px;
    padding: 28px 24px;
    background: #fffffff5;
    border: 1px solid #e9def1;
    border-radius: 4px;
    box-shadow: 0 18px 60px #46117712;
    z-index: 3;
    backdrop-filter: blur(14px)
}

[hidden] {
    display: none !important
}

.close-panel {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    color: #8a7599;
    font-size: 23px
}

.panel-kicker {
    font-size: 8px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: 2px
}

.country-panel h2 {
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.7px;
    margin: 16px 0 6px
}

.country-panel>p {
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 22px
}

dl {
    margin: 0
}

dl div {
    border-top: 1px solid #ede6f2;
    padding: 13px 0
}

dt {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94839f
}

dd {
    font-size: 12px;
    line-height: 1.8;
    margin: 4px 0 0
}

.panel-foot {
    display: block;
    font-size: 9px;
    color: var(--purple);
    margin-top: 18px
}

.map-hint,
.map-note {
    text-align: center;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #806a90;
    margin: 0 0 12px
}

.map-note {
    font-size: 9px;
    letter-spacing: 0;
    color: #aa9db1
}

.country-picker {
    display: block;
    margin: 15px auto;
    padding: 10px 15px;
    max-width: 100%;
    border: 1px solid #e6dcec;
    background: #fff;
    border-radius: 6px;
    color: var(--purple);
    font: inherit;
    font-size: 12px
}

:focus-visible {
    outline: 2px solid #8f54c6;
    outline-offset: 4px
}

html[dir=rtl] body {
    font-family: Cairo, Manrope, sans-serif
}

html[dir=rtl] h1 {
    letter-spacing: 0
}

html[dir=rtl] .country-panel {
    direction: rtl;
    text-align: right
}

html[dir=rtl] .close-panel {
    right: auto;
    left: 10px
}

@keyframes light-travel {
    to {
        stroke-dashoffset: -100
    }
}

@media(min-width:1500px) {
    .country-panel {
        right: 3%
    }
}

@media(max-width:900px) {
    .country-panel {
        width: 205px;
        padding: 24px 18px;
        top: 28%
    }

    .country-panel h2 {
        font-size: 21px
    }

    .map-wrap {
        width: 90%
    }

    .header-note {
        display: none
    }

    .hero {
        padding-top: 35px
    }
}

@media(max-width:600px) {
    .header {
        height: 70px
    }

    .header img {
        width: 110px
    }

    .hero {
        padding: 30px 16px 20px
    }

    .hero-copy>p:last-child {
        font-size: 12px
    }

    h1 {
        letter-spacing: -1px
    }

    .map-explorer {
        height: auto;
        min-height: 250px;
        margin-top: 25px;
        display: flex;
        flex-direction: column
    }

    .map-wrap {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: auto
    }

    .country-panel {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 22px 0
    }

    .connector {
        display: none
    }

    .map-hint {
        font-size: 8px;
        letter-spacing: 1px
    }

    .map-note {
        line-height: 1.7
    }

    .country-panel h2 {
        margin-top: 10px
    }
}

@media(prefers-reduced-motion:reduce) {

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

    .connector-light {
        stroke-dasharray: none
    }
}

/* Sculpted SVG: stacked geometry gives each country a real visible sidewall. */
.map-tools {
    display: flex;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    margin: 24px auto 0;
    padding: 4px;
    border: 1px solid #eee7f4;
    border-radius: 30px;
    background: #faf8fc
}

.map-mode {
    border: 0;
    padding: 9px 17px;
    border-radius: 24px;
    background: transparent;
    font-size: 11px;
    color: #8d7d9b;
    transition: background .2s, color .2s, box-shadow .2s
}

.map-mode.active {
    background: #fff;
    color: #602b95;
    box-shadow: 0 2px 9px #46117712
}

.map-explorer {
    margin-top: 0
}

.map-wrap {
    isolation: isolate
}

.map-wrap::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 52%;
    left: 8%;
    top: 33%;
    border: 1px solid #eae1f2;
    border-radius: 50%;
    transform: rotate(-9deg);
    z-index: -1;
    background: radial-gradient(ellipse, #f4eefb66, transparent 68%);
    pointer-events: none
}

.map-wrap::after {
    content: '';
    position: absolute;
    width: 95%;
    height: 68%;
    left: 3%;
    top: 25%;
    border: 1px dashed #eee6f5;
    border-radius: 50%;
    transform: rotate(-9deg);
    z-index: -1;
    pointer-events: none
}

.terrain-image {
    display: none
}

#map-ground {
    fill: #49236a;
    opacity: .2;
    filter: url(#map-shadow);
    transform: translate(8px, 42px)
}

.map-side {
    stroke: #70469b;
    stroke-width: 1;
    stroke-linejoin: round;
    pointer-events: none
}

.country-region {
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke
}

.map-explorer[data-mode=sculpted] .country-region {
    fill: url(#map-surface);
    stroke: #fff;
    stroke-width: 1.1;
    filter: drop-shadow(0 -1px 0 #fff8)
}

.map-explorer[data-mode=sculpted] .country-region:hover,
.map-explorer[data-mode=sculpted] .country-region.active,
.map-explorer[data-mode=sculpted] .country-region:focus-visible {
    fill: url(#map-selected);
    stroke: #e7cfff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px #a273d8aa)
}

.map-explorer[data-mode=terrain] .terrain-image {
    display: block
}

.map-explorer[data-mode=terrain] #map-depth,
.map-explorer[data-mode=terrain] #map-ground {
    display: none
}

.map-explorer[data-mode=terrain] .map-wrap::before {
    opacity: 0
}

.country-panel {
    border-radius: 16px;
    border-top: 3px solid #8f56c1;
    background: #ffffffef
}

.country-panel::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 47px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a667ee;
    box-shadow: 0 0 16px #a667ee
}

.connector {
    z-index: 2
}

.map-hint::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a271d2;
    margin-inline-end: 8px;
    box-shadow: 0 0 0 4px #f1e8fa
}

@media(max-width:600px) {
    .map-tools {
        margin-top: 20px
    }

    .map-mode {
        font-size: 10px
    }

    .map-explorer {
        margin-top: 15px
    }

    .country-panel::before {
        display: none
    }
}

/* Geographic boundaries share source arcs, with a single unified extruded coastline. */
.map-explorer[data-mode=flat] .country-region {
    fill: #e9def5;
    stroke: #fff;
    stroke-width: 1
}

.map-explorer[data-mode=flat] .country-region:hover,
.map-explorer[data-mode=flat] .country-region.active,
.map-explorer[data-mode=flat] .country-region:focus-visible {
    fill: url(#map-selected);
    stroke: #f4eaff
}

.map-explorer[data-mode=flat] #map-depth,
.map-explorer[data-mode=flat] #map-ground {
    display: none
}

.map-explorer[data-mode=sculpted] .country-region {
    stroke-width: .75
}

.country-region {
    fill-rule: evenodd
}

.map-side {
    stroke-width: 0
}

.map-source {
    text-align: center;
    font-size: 9px;
    margin: 8px 0;
    color: #a092aa
}

.map-source a {
    text-decoration: none;
    border-bottom: 1px solid #e5d9ef
}

/* Map-only composition */
.map-only .hero {
    /* min-height: 100svh; */
    padding: 0 24px 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.country-controls {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 4
}

.country-controls .country-picker {
    width: 280px;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 13px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px #46117708
}

.map-only .map-explorer {
    width: 100%;
    height: clamp(420px, 55vw, 600px);
    margin: 0 auto
}

@media(max-width:600px) {
    .map-only .hero {
        padding: 24px 16px
    }

    .map-only .map-explorer {
        height: auto;
        min-height: 230px;
        margin-top: 24px
    }

    .country-controls .country-picker {
        margin-bottom: 0
    }

    .map-only .country-panel {
        margin-bottom: 0
    }
}/* Tall profile, with scrolling contained inside the card rather than the page. */
.country-panel{position:fixed;right:24px;top:110px;bottom:24px;width:340px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100svh - 134px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbb4df transparent;padding:28px 24px;z-index:10;scrollbar-gutter:stable}
.country-panel h2{padding-inline-end:10px}.insight-section{border-top:1px solid #ede6f2;padding:20px 0 2px;margin-top:16px}.insight-section h3{font-size:13px;color:#542180;margin:0 0 13px}.insight-section p{font-size:11px;line-height:1.9;color:#84728e;margin:10px 0}.insight-metric{display:flex;flex-direction:column;gap:5px}.insight-metric strong{font-size:25px;color:#4e1c7c;line-height:1.4}.insight-metric span{font-size:9px;color:#917b9f}.insight-links{display:flex;flex-wrap:wrap;gap:8px 14px}.insight-links a{color:#76409f;font-size:10px;text-underline-offset:3px}.opportunity-list{display:flex;flex-wrap:wrap;gap:7px;padding:0;list-style:none}.opportunity-list li{font-size:10px;color:#79518e;background:#f6f0fb;border:1px solid #eee2f6;border-radius:8px;padding:7px 10px}.insight-section .insight-note{font-size:10px;color:#9c8aa7}.return-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.return-inputs label{font-size:10px;color:#80678f}.return-inputs input{width:100%;min-width:0;margin-top:7px;border:1px solid #e7dced;border-radius:7px;padding:10px 8px;font:inherit;color:#542180;background:#fff}#roi-result{display:block;background:#f6f0fb;padding:12px;font-size:11px;line-height:1.8;border-radius:8px;color:#63348a;margin-top:12px}
/* Fit header, copy, picker and map to the viewport on desktop. */
@media(min-width:601px){body{height:100svh;overflow:hidden}.header{height:72px}.map-only{height:calc(100svh - 72px)}.map-only .hero{height:100%;min-height:0;padding:18px 24px 10px;justify-content:flex-start;gap:12px}.hero-copy{flex:none}.hero-copy .eyebrow{margin:0 0 8px}h1{font-size:clamp(30px,4vw,52px);margin:8px 0}.hero-copy>p:last-child{font-size:12px;line-height:1.6}.country-controls{flex:none}.country-controls .country-picker{margin:0}.map-only .map-explorer{height:auto;min-height:0;flex:1}.map-wrap{width:min(76%,calc((100svh - 290px)*1.7));max-width:1050px}}
@media(max-width:600px){.map-only .country-panel{position:fixed;top:85px;bottom:16px;right:16px;width:calc(100vw - 32px);max-height:calc(100svh - 101px);height:auto;margin:0;padding:24px 20px}}
@media(max-height:620px) and (min-width:601px){.country-panel{top:84px;bottom:14px;max-height:calc(100svh - 98px)}.hero-copy>p:last-child{display:none}.map-wrap{width:min(76%,calc((100svh - 230px)*1.7))}}
.country-heading{display:flex;align-items:center;gap:12px;margin:16px 0 8px}
.country-heading .country-flag{display:block;width:48px;height:32px;object-fit:contain;flex:none;filter:drop-shadow(0 2px 3px #24192d14)}
.country-heading h2{margin:0;padding:0;min-width:0;overflow-wrap:anywhere}
