/* CountrySuite public home — classic institutional overlay
   Home-scoped --cs-* tokens from home.html :root (Jelcom --forest #123b36 / --forest-deep #092b28).
   Does not change global platform indigo in styles.css / auth. */

:root {
    --brand-primary: var(--cs-primary);
    --brand-dark: var(--cs-primary-strong);
    --brand-accent: var(--cs-accent);
    --bg-light: var(--cs-page-bg-soft);
    --text-main: var(--cs-text);
    --text-muted: var(--cs-muted);
    --cs-display: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --cs-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
    --cs-home-max: 1120px;
    --cs-home-gutter: clamp(1.25rem, 4vw, 2.75rem);
    --cs-nav-height: 4.5rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cs-nav-height) + 1rem);
}

body {
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(var(--cs-accent-rgb), 0.07), transparent 55%),
        linear-gradient(180deg, var(--cs-page-bg) 0%, var(--cs-page-bg-soft) 32%, #ffffff 100%);
    color: var(--cs-text);
    font-family: var(--cs-sans);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Fixed public chrome (sticky is unreliable with overflow-x clipping ancestors). */
/* .cs-has-site-header is set by a script after the header (older browsers ignore :has()). */
body.cs-has-site-header,
body:has(> .cs-site-header),
body:has(> [data-cs-site-header]) {
    padding-top: var(--cs-nav-height);
}

body > header.cs-site-header,
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    isolation: isolate;
    max-width: 100%;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 246, 0.94) 100%);
    border-bottom: 1px solid var(--cs-border);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

body > header.cs-site-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cs-primary-strong) 0%, var(--cs-primary) 55%, var(--cs-accent) 100%);
    opacity: 0.9;
    pointer-events: none;
}

body > header.is-scrolled {
    box-shadow: 0 10px 28px rgba(var(--cs-primary-rgb), 0.10);
    border-bottom-color: rgba(var(--cs-primary-rgb), 0.18);
}

.nav-container {
    position: relative;
    width: min(100%, 1280px);
    max-width: 100%;
    margin: 0 auto;
    min-height: 4.5rem;
    padding: 0.75rem var(--cs-home-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

.logo-box {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    min-width: 0;
    max-width: min(100%, 16rem);
    flex: 0 1 auto;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.logo-box:hover {
    opacity: 0.92;
}

.un-glyph {
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    border-radius: 0.35rem;
    background: var(--cs-primary);
    color: #fff;
    box-shadow: none;
    font-family: var(--cs-sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.logo-box:hover .un-glyph {
    transform: translateY(-1px);
    background: var(--cs-primary-strong);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    line-height: 1.2;
}

.logo-text strong,
.logo-text h1 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.logo-text p,
.logo-tagline {
    display: block;
    max-width: 100%;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--cs-muted);
    font-family: var(--cs-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.cs-nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--cs-border);
    border-radius: 0.35rem;
    background: #fff;
    color: var(--cs-primary-strong);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cs-nav-toggle:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.45);
    background: var(--cs-primary-soft);
}

.cs-nav-toggle-bars,
.cs-nav-toggle-bars::before,
.cs-nav-toggle-bars::after {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.cs-nav-toggle-bars {
    position: relative;
}

.cs-nav-toggle-bars::before,
.cs-nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.cs-nav-toggle-bars::before { top: -5px; }
.cs-nav-toggle-bars::after { top: 5px; }

.cs-site-header.is-nav-open .cs-nav-toggle-bars {
    background: transparent;
}

.cs-site-header.is-nav-open .cs-nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.cs-site-header.is-nav-open .cs-nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.cs-primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 auto;
}

.cs-primary-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.1rem;
}

.cs-primary-nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--cs-text);
    font-family: var(--cs-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.72rem;
    border-radius: 0.3rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cs-primary-nav-list a::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.28rem;
    height: 1.5px;
    background: var(--cs-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.cs-primary-nav-list a:hover,
.cs-primary-nav-list a:focus-visible {
    color: var(--cs-primary);
    background: transparent;
}

.cs-primary-nav-list a:hover::after,
.cs-primary-nav-list a:focus-visible::after {
    transform: scaleX(1);
}

.cs-primary-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.btn-login,
.btn-subscribe {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    border-radius: 0.3rem !important;
    padding: 0.55rem 1.05rem !important;
    font-family: var(--cs-sans) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.btn-login {
    background: var(--cs-primary-strong) !important;
    color: #fff !important;
    border: 1px solid var(--cs-primary-strong) !important;
}

.btn-login:hover {
    background: var(--cs-primary) !important;
    border-color: var(--cs-primary) !important;
    color: #fff !important;
}

.btn-subscribe {
    border: 1px solid rgba(var(--cs-primary-rgb), 0.35) !important;
    color: var(--cs-primary) !important;
    background: transparent !important;
}

.btn-subscribe:hover {
    background: var(--cs-primary-soft) !important;
    border-color: rgba(var(--cs-primary-rgb), 0.5) !important;
    color: var(--cs-primary-strong) !important;
}

body.cs-nav-lock {
    overflow: hidden;
}

/* Collapse before brand + 6 links + CTAs can overflow / wrap awkwardly */
@media (max-width: 1099.98px) {
    :root {
        --cs-nav-height: 4rem;
    }

    .nav-container {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .logo-box {
        max-width: calc(100% - 3.5rem);
        flex: 1 1 auto;
    }

    .cs-nav-toggle {
        display: inline-flex;
        margin-left: auto;
        z-index: 2;
    }

    .cs-primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 30;
        display: grid;
        justify-items: stretch;
        justify-content: stretch;
        gap: 0.85rem;
        padding: 0.85rem var(--cs-home-gutter) 1.15rem;
        background: #ffffff;
        border-bottom: 1px solid var(--cs-border);
        box-shadow: 0 18px 36px rgba(var(--cs-primary-rgb), 0.12);
        transform: translateY(-0.35rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        text-align: left;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100svh - var(--cs-nav-height));
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .cs-site-header.is-nav-open .cs-primary-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .cs-primary-nav .cs-primary-nav-list,
    .cs-primary-nav-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 0.15rem;
    }

    .cs-primary-nav .cs-primary-nav-list a,
    .cs-primary-nav-list a,
    .cs-primary-nav .cs-primary-nav-list li,
    .cs-primary-nav-list li {
        width: 100%;
    }

    .cs-primary-nav .cs-primary-nav-list a,
    .cs-primary-nav-list a {
        justify-content: flex-start;
        text-align: left;
        min-height: 44px;
        padding: 0.75rem 0.85rem;
        border-radius: 0.35rem;
        white-space: normal;
    }

    .cs-primary-nav-list a::after {
        display: none;
    }

    .cs-primary-nav-list a:hover,
    .cs-primary-nav-list a:focus-visible {
        background: var(--cs-primary-soft);
    }

    .cs-primary-nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 0.35rem;
        border-top: 1px solid var(--cs-border);
        gap: 0.55rem;
    }

    .btn-login,
    .btn-subscribe {
        width: 100%;
        min-height: 44px !important;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(var(--cs-accent-rgb), 0.55);
    outline-offset: 3px;
}

/* ——— Brand-first full-bleed hero ——— */
.cs-home-hero {
    position: relative;
    isolation: isolate;
    min-height: min(100vh, 52rem);
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--cs-on-dark);
    background:
        linear-gradient(
            165deg,
            var(--cs-panel-dark-start) 0%,
            #0d332f 48%,
            var(--cs-panel-dark-end) 100%
        );
}

.cs-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse 65% 60% at 72% 38%, #000 15%, transparent 72%);
    pointer-events: none;
}

.cs-home-hero::after {
    content: "";
    position: absolute;
    inset: auto -15% -40% 40%;
    z-index: 0;
    height: 70%;
    background:
        radial-gradient(ellipse at center, rgba(var(--cs-accent-rgb), 0.14), transparent 64%);
    pointer-events: none;
    animation: cs-hero-glow 10s ease-in-out infinite alternate;
}

.cs-home-hero-visual {
    display: none;
}

.cs-home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--cs-home-max));
    margin: 0 auto;
    padding: clamp(4.5rem, 12vh, 7rem) var(--cs-home-gutter) clamp(3.5rem, 8vh, 5.5rem);
}

.cs-home-hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.35rem;
}

.cs-home-hero-brand-mark {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--cs-sans);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.cs-home-hero-brand-mark img {
    display: none;
}

.cs-home-hero-brand-name {
    margin: 0;
    color: #ffffff;
    font-family: var(--cs-display);
    font-size: clamp(2.65rem, 7.2vw, 4.35rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.cs-home-hero-headline {
    margin: 0 0 1rem;
    max-width: 22ch;
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--cs-display);
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 400;
    line-height: 1.35;
}

.cs-home-hero-lede {
    margin: 0 0 1.85rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2.1vw, 1.125rem);
    line-height: 1.65;
}

.cs-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
    .cs-home-hero.is-ready .cs-home-hero-brand,
    .cs-home-hero.is-ready .cs-home-hero-headline,
    .cs-home-hero.is-ready .cs-home-hero-lede,
    .cs-home-hero.is-ready .cs-home-hero-actions {
        animation: cs-hero-rise 0.75s ease both;
    }

    .cs-home-hero.is-ready .cs-home-hero-headline {
        animation-delay: 0.08s;
    }

    .cs-home-hero.is-ready .cs-home-hero-lede {
        animation-delay: 0.14s;
    }

    .cs-home-hero.is-ready .cs-home-hero-actions {
        animation-delay: 0.2s;
    }
}

.cs-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0 1.35rem;
    border-radius: 0.3rem;
    font-family: var(--cs-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cs-home-btn.primary {
    background: #ffffff;
    color: var(--cs-primary-strong);
    border: 1px solid #ffffff;
}

.cs-home-btn.primary:hover {
    background: var(--cs-accent-soft);
    border-color: var(--cs-accent-soft);
    color: var(--cs-primary-strong);
    transform: translateY(-1px);
}

.cs-home-btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.cs-home-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
}

@keyframes cs-hero-rise {
    from {
        opacity: 1;
        transform: translateY(0.85rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cs-hero-glow {
    from { opacity: 0.7; transform: translate3d(0, 0, 0); }
    to { opacity: 1; transform: translate3d(-18px, -10px, 0); }
}

.cs-reveal {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cs-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ——— Platform overview (moved from login) ——— */
.cs-home-overview {
    padding: 3.5rem 0 1.25rem;
}

.cs-home-overview-inner {
    max-width: 46rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cs-border);
}

.cs-home-overview h2 {
    margin: 0;
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.55rem, 2.8vw, 2.05rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.cs-home-overview-lede {
    margin: 1rem 0 0;
    color: var(--cs-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cs-home-overview-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.cs-home-overview-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cs-text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

.cs-home-overview-points i {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3rem;
    background: var(--cs-primary-soft);
    color: var(--cs-primary);
    font-size: 1rem;
}

/* ——— Directory / countries ——— */
.home-introduction {
    display: none;
}

.hero-v2 {
    display: none;
}

.cs-home-directory,
.cs-home-overview,
.country-photo-carousel,
.home-shell,
.footer-grid,
.stats-shell {
    width: min(100% - (var(--cs-home-gutter) * 2), var(--cs-home-max));
    margin-left: auto;
    margin-right: auto;
}

.cs-home-directory {
    padding: 3.25rem 0 1rem;
}

.cs-section-kicker {
    margin: 0 0 0.65rem;
    color: var(--cs-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cs-home-directory-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cs-border);
}

.cs-home-directory-head h2 {
    margin: 0;
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}

.cs-home-directory-head p {
    margin: 0.45rem 0 0;
    max-width: 34rem;
    color: var(--cs-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.country-directory-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 22rem);
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid var(--cs-border);
    border-radius: 0.3rem;
    background: #fff;
}

.country-directory-search i {
    color: var(--cs-primary);
}

.country-directory-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--cs-text);
    font-family: var(--cs-sans);
    font-size: 0.95rem;
    padding: 0.85rem 0;
}

.country-directory-search:focus-within {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px var(--cs-focus);
}

.country-directory-search input:focus {
    outline: none;
}

.country-photo-carousel {
    background: none;
    border: 0;
    color: inherit;
    padding: 0 0 2.5rem;
    overflow: visible;
}

.directory-heading {
    display: none;
}

.country-photo-viewport {
    overflow: visible;
}

.country-photo-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    transform: none !important;
    transition: none;
    will-change: auto;
}

.country-photo-slide {
    min-height: 0;
    min-width: 0;
    display: block;
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.country-photo-slide:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.45);
    box-shadow: var(--cs-shadow-sm);
}

.country-photo-slide[hidden] {
    display: none;
}

.country-photo-slide::before {
    display: none;
}

.country-photo-content {
    position: static;
    width: auto;
    margin: 0;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.country-photo-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--cs-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    backdrop-filter: none;
}

.country-photo-kicker [hidden] {
    display: none;
}

.country-photo-kicker img {
    width: 2.75rem;
    height: 1.85rem;
    object-fit: contain;
    border: 1px solid var(--cs-border);
    background: #fff;
}

.country-photo-content h2 {
    margin: 1rem 0 0.65rem;
    max-width: none;
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.country-photo-meta {
    margin: 0 0 1.1rem;
    gap: 0.4rem;
}

.country-photo-meta span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--cs-muted);
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: none;
}

.country-photo-meta span + span {
    display: none;
}

.country-photo-link {
    margin-top: auto;
    justify-content: space-between;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--cs-primary);
    box-shadow: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.country-photo-link:hover {
    color: var(--cs-primary-strong);
}

.country-search-status {
    min-height: 1.25rem;
    padding-top: 0.75rem;
    color: var(--cs-muted);
    font-size: 0.88rem;
}

/* ——— Below-fold sections ——— */
.home-shell {
    padding: 0 0 1rem;
}

.subscribe-section {
    margin: 0 0 2.75rem;
    padding: 2rem 1.75rem;
    border: 1px solid var(--cs-border);
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: none;
}

.subscribe-head {
    text-align: left;
    max-width: 40rem;
    margin: 0 0 1.75rem;
}

.subscribe-head .featured-label,
.featured-label {
    text-align: left;
    color: var(--cs-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.subscribe-head h2 {
    margin: 0.5rem 0 0.65rem;
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
}

.subscribe-head p {
    color: var(--cs-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.subscribe-grid {
    gap: 1rem;
}

.subscribe-card {
    border: 1px solid var(--cs-border);
    border-radius: 0.35rem;
    background: var(--cs-surface-soft);
    box-shadow: none;
}

.subscribe-card-icon {
    background: var(--cs-primary-soft);
    color: var(--cs-primary);
    border-radius: 0.3rem;
}

.subscribe-card h3 {
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-weight: 700;
}

.subscribe-card-cta {
    color: var(--cs-primary);
    font-weight: 700;
}

.home-command-strip {
    margin: 0 0 3rem;
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-command-cell,
.home-command-cell.primary {
    background: transparent;
    padding: 1.15rem 0 0;
    border-top: 2px solid var(--cs-primary);
    color: var(--cs-text);
}

.home-command-cell:nth-child(2) {
    border-color: var(--cs-accent);
}

.home-command-cell:nth-child(3) {
    border-color: rgba(var(--cs-primary-rgb), 0.45);
}

.home-command-cell:nth-child(4) {
    border-color: rgba(var(--cs-accent-rgb), 0.55);
}

.home-command-cell strong,
.home-command-cell.primary strong {
    color: var(--cs-primary-strong);
    font-size: 0.98rem;
    margin-bottom: 0.55rem;
}

.home-command-cell span,
.home-command-cell.primary span {
    color: var(--cs-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-command-cell i,
.home-command-cell.primary i {
    color: var(--cs-primary);
    margin-right: 0.4rem;
}

.suite-apps {
    margin-bottom: 2.75rem;
    padding: 0 0 2.5rem;
    border: 0;
    border-bottom: 1px solid var(--cs-border);
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.apps-carousel-head h2 {
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
}

.apps-carousel-head p {
    color: var(--cs-muted);
    font-size: 0.98rem;
    max-width: 40rem;
    line-height: 1.65;
}

.apps-carousel-btn {
    border-radius: 0.3rem;
    border-color: var(--cs-border);
    background: #fff;
    color: var(--cs-primary);
}

.apps-carousel-btn:hover {
    border-color: var(--cs-primary);
    background: var(--cs-primary-soft);
}

.apps-carousel-viewport {
    border-radius: 0;
}

.suite-app-card {
    border: 1px solid var(--cs-border);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: none;
}

.suite-app-card::before {
    display: none;
}

.suite-app-card:hover,
.suite-app-card:focus {
    transform: none;
    box-shadow: var(--cs-shadow-sm);
    border-color: rgba(var(--cs-primary-rgb), 0.4);
}

.suite-app-section {
    background: var(--cs-primary-soft);
    color: var(--cs-primary);
    border-radius: 0.25rem;
}

.suite-app-icon {
    background: var(--cs-accent-soft);
    color: var(--cs-primary);
    border-radius: 0.3rem;
    box-shadow: none;
}

.suite-app-card h3 {
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-weight: 700;
}

.suite-app-card p {
    color: var(--cs-muted);
}

.suite-app-tags span {
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--cs-muted);
    padding: 0;
}

.suite-app-tags span + span::before {
    content: "·";
    margin-right: 0.45rem;
    margin-left: 0.15rem;
}

.apps-carousel-dot {
    background: var(--cs-border-strong);
}

.apps-carousel-dot.is-active {
    background: var(--cs-primary);
}

.featured-countries {
    padding-bottom: 1rem;
}

.national-coverage-band {
    border: 0;
    border-radius: 0;
    margin: 0;
    background: transparent !important;
}

.national-coverage-head h3 {
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
}

.national-coverage-head p,
.profile-depth-panel p {
    color: var(--cs-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.national-coverage-list {
    background: var(--cs-surface-tint);
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
}

.national-coverage-list span {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 0.3rem;
    font-weight: 600;
    color: var(--cs-text);
}

.national-coverage-list i {
    color: var(--cs-primary);
}

.profile-depth-panel {
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 2.5rem 0;
    color: var(--cs-text);
}

.profile-depth-panel h3 {
    color: var(--cs-primary-strong);
    font-family: var(--cs-display);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 700;
}

.profile-dataset-list span {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cs-text);
    font-size: 0.9rem;
}

.profile-dataset-list i {
    color: var(--cs-success);
}

.home-statistics {
    padding: 2.75rem 0;
    border-top: 1px solid var(--cs-border);
    background: var(--cs-surface-tint);
}

.stats-shell h4 {
    font-family: var(--cs-display) !important;
    font-weight: 700 !important;
    color: var(--cs-primary) !important;
}

.stats-shell p {
    color: var(--cs-text) !important;
    font-weight: 700 !important;
}

.stats-shell span {
    color: var(--cs-muted) !important;
}

footer {
    background: var(--cs-primary-strong);
    padding: 3.25rem 0 1.75rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-logo h2 {
    color: #fff;
    font-family: var(--cs-display);
    font-weight: 700;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
    color: var(--cs-accent);
}

.app-country-search:focus-within {
    outline: 2px solid var(--cs-primary);
}

.app-country-modal .app-country-dialog {
    border-radius: 0.4rem;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
    .country-photo-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cs-home-hero-visual img {
        width: min(48vw, 22rem);
        opacity: 0.1;
    }
}

/* Stack hero CTAs once the first viewport can no longer fit three side-by-side */
@media (max-width: 1099.98px) {
    .cs-home-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        max-width: 22rem;
    }

    .cs-home-btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: calc(var(--cs-nav-height) + 1rem);
    }

    body > header.cs-site-header,
    body > header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .cs-home-directory,
    .cs-home-overview,
    .country-photo-carousel,
    .home-shell,
    .footer-grid,
    .stats-shell {
        width: calc(100% - 2.5rem);
    }

    .nav-container {
        min-height: 4rem;
        padding: 0.65rem 1.1rem;
    }

    .logo-tagline {
        display: none;
    }

    .cs-home-hero {
        min-height: 100svh;
    }

    .cs-home-hero-inner {
        padding-top: clamp(5.25rem, 12vh, 6.5rem);
        padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
    }

    .cs-home-hero-brand {
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .cs-home-hero-brand-mark {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.9rem;
    }

    .cs-home-hero-brand-name {
        font-size: clamp(2rem, 10.5vw, 2.75rem);
    }

    .cs-home-hero-headline {
        max-width: none;
        font-size: clamp(1.15rem, 4.2vw, 1.45rem);
        margin-bottom: 0.75rem;
    }

    .cs-home-hero-lede {
        margin-bottom: 1.35rem;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .cs-home-hero-actions {
        max-width: none;
    }

    .cs-home-hero-visual img {
        display: none;
    }

    .cs-home-directory {
        padding-top: 2.25rem;
    }

    .cs-home-directory-head {
        flex-direction: column;
        align-items: stretch;
    }

    .country-directory-search {
        width: 100%;
    }

    .country-photo-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .country-photo-content {
        padding: 1rem;
    }

    .country-photo-content h2 {
        font-size: 1.15rem;
    }

    .subscribe-section {
        padding: 1.5rem 1.15rem;
    }

    .home-command-strip {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2.25rem;
    }

    .apps-carousel-head h2 {
        font-size: 1.55rem;
    }

    .national-coverage-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .country-photo-track {
        grid-template-columns: 1fr;
    }

    .home-command-strip {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .cs-home-hero::after,
    .cs-home-hero-visual img,
    .cs-reveal,
    .cs-home-hero.is-ready .cs-home-hero-brand,
    .cs-home-hero.is-ready .cs-home-hero-headline,
    .cs-home-hero.is-ready .cs-home-hero-lede,
    .cs-home-hero.is-ready .cs-home-hero-actions {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
