/* ==========================================================================
   Connector.Global — homepage
   ========================================================================== */

:root {
    /* Brand */
    --orange: #f97316;
    --orange-deep: #ea580c;
    --cyan: #10a7dc;
    --cyan-deep: #0b7fa8;
    --navy: #0b1b3f;
    --ink: #1c2742;
    --muted: #5a6478;
    --line: #e5e8f0;

    /* Pastel surfaces */
    --cream: #fff6ec;
    --sky: #e6f6fd;
    --mint: #e7f8ee;
    --sun: #fff3cc;
    --lilac: #f1ecff;
    --sand: #efe5da;
    --sage: #e3ecdd;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 6px rgba(11, 27, 63, 0.06);
    --shadow: 0 12px 32px -12px rgba(11, 27, 63, 0.18);

    --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 9vw, 112px);

    color-scheme: light;
}

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

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

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { margin: 0; }

.i { width: 1.1em; height: 1.1em; flex: none; }

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px; left: 16px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: #fff;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* Navy on orange keeps text contrast above 6:1 */
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 0 -1px var(--orange-deep); }
.btn-primary:hover { box-shadow: 0 8px 0 -1px var(--orange-deep); }
.btn-outline { border-color: var(--navy); background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--sky); transform: none; }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.btn-ghost .i,
.nav-link .i { width: 16px; height: 16px; transition: transform 160ms ease; }
[aria-expanded="true"] > .i { transform: rotate(180deg); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 2px;
}
.link-arrow .i { transition: transform 160ms ease; }
.link-arrow:hover .i { transform: translateX(4px); }

/* Announcement bar -------------------------------------------------------- */

.announce { background: var(--navy); color: #fff; font-size: 14px; text-align: center; }
.announce a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px var(--gutter);
    text-decoration: none;
}
.announce a:hover { text-decoration: underline; }
.announce-pill {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Header ----------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: auto; height: 38px; }

.site-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { background: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10;
    display: grid;
    gap: 2px;
    width: 320px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.dropdown[hidden] { display: none; }
.dropdown-right { left: auto; right: 0; }

.dropdown-link {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.dropdown-link:hover { background: var(--cream); }
.dropdown-link strong { color: var(--navy); font-size: 15px; }
.dropdown-link span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.portals { width: 340px; }
.portal-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.portal-row:hover { background: var(--cream); }
.portal-name { color: var(--navy); font-weight: 700; }
.portal-row a { color: var(--cyan-deep); font-weight: 700; text-decoration: none; }
.portal-row a:hover { text-decoration: underline; }

.portal-badge {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.portal-s  { background: #2563eb; }
.portal-t  { background: #15803d; }
.portal-p  { background: #7c3aed; }
.portal-sc { background: #c2410c; }

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--sky);
    color: var(--navy);
    cursor: pointer;
}
.nav-toggle .i { width: 24px; height: 24px; }

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.blob-a { top: -120px; right: -80px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(16, 167, 220, 0.18), transparent 65%); }
.blob-b { bottom: -160px; left: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 65%); }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(16, 167, 220, 0.3);
    border-radius: 999px;
    background: #fff;
    color: var(--cyan-deep);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hl {
    position: relative;
    isolation: isolate;
    color: var(--orange-deep);
    white-space: nowrap;
}
.hl::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.02em;
    z-index: -1;
    height: 0.28em;
    border-radius: 999px;
    background: var(--sun);
}

.lede { max-width: 54ch; margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 36px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hero-trust strong { color: var(--navy); }
.logo-stack { display: flex; }
.logo-stack img {
    width: 40px; height: 40px;
    margin-left: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}
.logo-stack img:first-child { margin-left: 0; }

.collage { position: relative; aspect-ratio: 1 / 0.92; }
.collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.c-main { inset: 10% 18% 8% 0; width: 82%; height: 82%; border-radius: 44% 56% 52% 48% / 48% 42% 58% 52%; }
.c-top { top: 0; right: 0; width: 38%; aspect-ratio: 1; border: 6px solid #fff; border-radius: var(--radius-lg); }
.c-bottom { right: 4%; bottom: 0; width: 36%; aspect-ratio: 1; border: 6px solid #fff; border-radius: 50%; }

.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.chip .i { color: var(--orange); }
.chip-1 { top: 4%; left: -4%; }
.chip-2 { bottom: 34%; left: -8%; animation-delay: -2s; }
.chip-3 { bottom: 6%; left: 22%; animation-delay: -4s; }
.chip-3 .i { color: var(--cyan); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Logo marquee ----------------------------------------------------------- */

.logos { padding: 36px 0 20px; }
.logos-title {
    margin-bottom: 20px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 64px; margin: 0; padding: 0 32px; list-style: none; }
.marquee-list img { width: auto; height: 56px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 200ms, opacity 200ms; }
.marquee-list img:hover { filter: none; opacity: 1; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats ------------------------------------------------------------------ */

.stats { padding: 28px 0 8px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat {
    display: grid;
    gap: 6px;
    padding: 26px 22px;
    border-radius: var(--radius);
    background: var(--sky);
}
.stat:nth-child(2) { background: var(--cream); }
.stat:nth-child(3) { background: var(--mint); }
.stat:nth-child(4) { background: var(--lilac); }
.stat-value { color: var(--navy); font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* Sections --------------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 18px; }

.kicker {
    margin-bottom: 14px;
    color: var(--orange-deep);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.kicker-light { color: var(--orange); }

.mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 50%;
}
.mark .i { width: 15px; height: 15px; stroke-width: 3; }
.mark-check { background: var(--mint); color: #15803d; }
.mark-x { background: #fde8e8; color: #c0392b; }

.checklist { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }

/* Compare ---------------------------------------------------------------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin-inline: auto; }
.compare-col { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); }
.compare-col h3 { margin-bottom: 24px; font-size: 24px; }
.compare-col ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.compare-col li { display: flex; align-items: flex-start; gap: 14px; }
.compare-without { border: 2px dashed var(--line); background: #fafbfc; color: var(--muted); }
.compare-without h3 { color: var(--muted); }
.compare-with { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.compare-with h3 { color: #fff; }
.compare-with .mark-check { background: var(--orange); color: var(--navy); }

/* Programmes ------------------------------------------------------------- */

.programmes { background: linear-gradient(180deg, #fff, var(--sky) 30%, var(--sky)); }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.programme {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 220ms ease;
}
.programme:hover { transform: translateY(-6px); }
.programme-media { aspect-ratio: 16 / 10; overflow: hidden; }
.programme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.programme:hover .programme-media img { transform: scale(1.04); }

.programme-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 26px; }
.programme-logo { width: auto; max-width: 100%; height: 44px; object-fit: contain; object-position: left; }
.programme h3 { font-size: 21px; line-height: 1.25; }
.programme p { color: var(--muted); font-size: 15.5px; }
.programme .link-arrow { align-self: flex-start; margin-top: auto; font-size: 15px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 5px 12px; border-radius: 999px; color: var(--navy); font-size: 13px; font-weight: 700; }
.tone-sky .facts li { background: var(--sky); }
.tone-sun .facts li { background: var(--sun); }
.tone-mint .facts li { background: var(--mint); }

/* Audience tabs ---------------------------------------------------------- */

.tab-list {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 32px;
    padding: 6px;
    overflow-x: auto;
    border-radius: 999px;
    background: var(--cream);
    scrollbar-width: none;
}
.tab {
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

.tab-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--cream);
    animation: fade-up 300ms ease;
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: clamp(26px, 3vw, 36px); }
.tab-panel p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.panel-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }

.panel-art {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--sun));
}
.panel-art img { width: 55%; height: auto; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Tools ------------------------------------------------------------------ */

.tools { padding-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 220ms ease;
}
.tool:hover { transform: translateY(-6px) rotate(-0.4deg); }
.tone-sand { background: var(--sand); }
.tone-orange { background: #fde3c6; }
.tone-sage { background: var(--sage); }
.tool-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 28px 24px; }
.tool-tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tool h3 { font-size: 34px; }
.tool p { flex: 1; color: var(--ink); font-size: 16px; }
.tool .btn { margin-top: 8px; }
.tool img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Featured --------------------------------------------------------------- */

.featured {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
}
.featured::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 167, 220, 0.3), transparent 65%);
}
.featured-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.featured h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.featured h2 em { color: var(--orange); font-style: normal; }
.featured-copy p:not(.kicker) { margin-top: 18px; font-size: 17px; }

.video-tabs { display: inline-flex; gap: 6px; margin-top: 28px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.video-tabs button {
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    cursor: pointer;
}
.video-tabs button.is-active { background: var(--orange); color: var(--navy); }

.featured-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 6px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: #000;
    object-fit: cover;
}

/* Communities ------------------------------------------------------------ */

.experts { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.expert-track {
    display: flex;
    flex: 1;
    gap: 16px;
    margin: 0;
    padding: 4px;
    overflow-x: auto;
    list-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.expert-track::-webkit-scrollbar { display: none; }
.expert {
    display: grid;
    flex: 0 0 180px;
    justify-items: center;
    gap: 4px;
    padding: 22px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
    scroll-snap-align: start;
}
.expert img { width: 96px; height: 96px; margin-bottom: 10px; border: 4px solid var(--cream); border-radius: 50%; object-fit: cover; }
.expert strong { color: var(--navy); font-size: 15px; line-height: 1.3; }
.expert span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.carousel-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
}
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.webinar-card {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--cream);
}
.webinar-info { display: grid; flex: 1 1 420px; gap: 12px; }
.webinar-action { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.webinar-label { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-deep); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.webinar-card h3 { font-size: 26px; line-height: 1.2; }
.webinar-when { color: var(--muted); font-weight: 600; }
.webinar-speaker { display: flex; align-items: center; gap: 14px; max-width: 320px; font-size: 14px; color: var(--muted); }
.webinar-speaker strong { color: var(--navy); }
.webinar-speaker img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.community-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.community-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky); }
.community-card > div { padding: 18px 20px 22px; }
.community-card h3 { font-size: 19px; }
.community-card h3 a { text-decoration: none; }
.community-card h3 a::after { content: ""; position: absolute; inset: 0; }
.community-card { position: relative; }
.community-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Demo ------------------------------------------------------------------- */

.demo { background: linear-gradient(180deg, #fff, var(--cream)); }
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.demo-copy h2 { font-size: clamp(32px, 4.2vw, 50px); }
.demo-copy > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }

.demo-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 14px; font-weight: 700; }
.field label span { color: var(--orange-deep); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 4px rgba(16, 167, 220, 0.15); }
.form-note { color: var(--muted); font-size: 13px; text-align: center; }

/* Footer ----------------------------------------------------------------- */

.site-footer { position: relative; margin-top: -1px; color: rgba(255, 255, 255, 0.72); background: linear-gradient(180deg, var(--cream) 0 50%, var(--navy) 50%); }
.footer-wave { display: block; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--navy); }
.footer-inner { background: var(--navy); padding: 32px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: auto; height: 40px; padding: 6px 10px; border-radius: 10px; background: #fff; }
.footer-brand p { max-width: 34ch; margin-top: 18px; font-size: 15px; }
.footer-portals { display: flex; gap: 8px; margin-top: 22px; }
.footer-col h2 { margin-bottom: 16px; color: #fff; font-family: var(--font-body); font-size: 15px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a,
.footer-bottom a { font-size: 15px; text-decoration: none; }
.footer-col a:hover,
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

/* Scroll reveal ---------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
    .nav-toggle { display: grid; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 72px);
        padding: 12px var(--gutter) 24px;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; }
    .nav-link { justify-content: space-between; width: 100%; padding: 14px 12px; font-size: 16px; }
    .dropdown { position: static; width: auto; margin: 4px 0 8px; box-shadow: none; }
    .nav-actions { flex-direction: column; align-items: stretch; margin-top: 8px; }
    .nav-actions .btn { width: 100%; }

    .hero-grid,
    .featured-grid,
    .demo-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

    .programme-grid,
    .tool-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

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

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

@media (max-width: 720px) {
    body { font-size: 16px; }
    .announce { font-size: 13px; }

    .hl { white-space: normal; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .chip { font-size: 12px; padding: 8px 12px; }
    .chip-1 { left: 0; }
    .chip-2 { left: 0; }

    .compare,
    .programme-grid,
    .tool-grid,
    .community-grid,
    .demo-form { grid-template-columns: 1fr; }

    .tab-list { justify-content: flex-start; }
    .tab-panel { grid-template-columns: 1fr; }
    .panel-art { display: none; }

    .experts .carousel-btn { display: none; }
    .expert { flex-basis: 160px; }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}
