/* ═══════════════════════════════════════════════════════════════
   Ecites public website
   Design tokens are shared with Ecites Konnect (the portal,
   frontend/portal/views/portal/layouts/master.blade.php) so the
   two read as one brand; --accent-warm is the legacy site's amber.
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    --primary: #067870;
    --primary-dark: #055c56;
    --primary-light: #6aaea9;
    --primary-lighter: #a8d0cd;
    --primary-bg: #daebe9;
    --primary-bg-light: #ebf4f4;
    --accent: #14958a;
    --accent-warm: #ffb300;
    --accent-warm-dark: #e6a100;
    --surface: #ffffff;
    --surface-alt: #f8faf9;
    --surface-dark: #0c2b29;
    --border: #e0e7e3;
    --border-light: #eef2f0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8da0;
    --text-on-dark: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 96px;

    /* Type system - matches platform.seghu.org (Tailwind scale):
       DM Sans body, Outfit headings, JetBrains Mono code. */
    --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    /* Exactly three text sizes site-wide (rem, so the a11y text-size control scales them):
       display = section headings, body = paragraphs / card titles, small = labels / meta / UI.
       Icon glyph sizes (Font Awesome in badges and buttons) are not text and stay as-is. */
    --fs-display: 1.875rem; /* 30, 36 from 768px (see media query below) */
    --fs-body: 1rem;        /* 16 */
    --fs-small: .875rem;    /* 14 */
    /* Legacy scale names, collapsed onto the three sizes above */
    --text-xs: var(--fs-small);
    --text-sm: var(--fs-small);
    --text-base: var(--fs-body);
    --text-lg: var(--fs-body);
    --text-xl: var(--fs-body);
    --text-2xl: var(--fs-body);
    --text-3xl: var(--fs-display);
    --text-4xl: var(--fs-display);
    --text-hero: var(--fs-display);
    --text-lead: var(--fs-body);
    --leading-relaxed: 1.625;
    --tracking-tight: -.025em;
    --tracking-wider: .05em;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; }
code, pre, kbd { font-family: var(--font-mono); }
small { font-size: var(--fs-small); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-size: var(--text-sm); font-weight: 500; line-height: 1.25;
    border: 2px solid transparent; cursor: pointer; transition: var(--transition);
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(6,120,112,0.25); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; box-shadow: none; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { color: var(--primary); background: var(--primary-bg-light); }
.btn-ghost:hover { background: var(--primary-bg); }
.btn-accent { background: var(--accent-warm); color: #1a1a2e; }
.btn-accent:hover { background: var(--accent-warm-dark); transform: translateY(-1px); }
/* Pill with a single circled chevron on the right */
.btn-dashboard {
    gap: 12px; padding: 7px 7px 7px 24px; border-radius: 999px; color: #fff; font-size: var(--text-sm);
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 6px 18px rgba(6,120,112,.28);
}
.btn-dashboard:hover { box-shadow: 0 10px 24px rgba(6,120,112,.36); transform: translateY(-1px); }
.btn-dashboard-arrow {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
    border: 2px solid #fff; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-dashboard-arrow svg { margin-left: 1px; }
.btn-dashboard:hover .btn-dashboard-arrow { background: #fff; color: var(--primary); transform: translateX(2px); }

/* ── Section scaffolding ───────────────────────────── */
.section { padding: 96px 0; }
.hero + #solutions { padding-top: 48px; }
/* Insights and FAQ are both white: don't stack two full section paddings between them */
#insights:has(+ #faq) { padding-bottom: 40px; }
#insights + #faq { padding-top: 40px; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
/* One heading style for every section title (hero, section heads, core values,
   partners): same font, size, weight and colour across the site */
.hero h1, .section-head h2, .about-copy h2, .contact-info h2, .platform-copy h2, .faq-intro h2,
.values-title, .partners-label {
    font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1.15;
    letter-spacing: var(--tracking-tight); text-transform: none; color: var(--text-primary);
}
@media (min-width: 768px) {
    :root { --fs-display: 2.25rem; } /* 36 */
}
.section-head h2, .about-copy h2, .contact-info h2, .platform-copy h2, .faq-intro h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: var(--text-base); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase;
    color: var(--primary); background: var(--primary-bg-light);
    border: 1px solid rgba(6,120,112,.28);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* reveal-on-scroll (website.js adds .is-visible; no-JS shows everything) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none !important; }
}

/* ── Header ────────────────────────────────────────── */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.95); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 80px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-bg-light); }
.main-nav a.is-active { color: var(--primary); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-burger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 32px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(106,174,169,.28), transparent 60%),
        radial-gradient(700px 400px at 0% 70%, rgba(255,179,0,.12), transparent 60%),
        linear-gradient(180deg, var(--primary-bg-light) 0%, #fff 100%);
    /* fade the glows out before the section ends so there is no hard edge into Solutions */
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--text-secondary); max-width: 560px; margin-bottom: 0; }

.hero-visual { position: relative; }
/* interactive stage: globe + orbits behind the cut-out photo */
.hero-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 580px; margin-left: auto; }
.hero-globe-wrap {
    position: absolute; left: 7%; right: 7%; top: 2%; aspect-ratio: 1 / 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--primary-bg-light) 45%, var(--primary-bg) 100%);
    box-shadow: inset -24px -30px 60px rgba(6,120,112,.18), 0 30px 60px rgba(6,120,112,.12);
}
.hero-globe { width: 100%; height: 100%; display: block; border-radius: 50%; cursor: grab; touch-action: pan-y; }
.hero-globe.is-dragging { cursor: grabbing; }
.hero-orbits { position: absolute; inset: -4% -6%; width: 112%; height: 108%; pointer-events: none; overflow: visible; }
.orbit { fill: none; stroke: var(--primary-light); stroke-width: 1.4; stroke-dasharray: 3 9; opacity: .55; transform-origin: 300px 300px; }
.orbit-a { transform: rotate(-14deg); animation: orbitSpin 60s linear infinite; }
.orbit-b { stroke: var(--accent-warm); opacity: .45; transform: rotate(22deg); animation: orbitSpin 90s linear infinite reverse; }
.orbit-dot { fill: var(--accent-warm); filter: drop-shadow(0 0 6px rgba(255,179,0,.8)); }
@keyframes orbitSpin { to { stroke-dashoffset: -240; } }
.hero-people {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    height: 80%; width: auto; max-width: 96%; object-fit: contain; pointer-events: none;
    filter: drop-shadow(0 24px 30px rgba(12,43,41,.25));
    /* the subjects touched the photo's left/right/bottom edges — fade those straight cuts */
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-composite: intersect;
}
.hero-float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow-lg);
    font-size: var(--text-sm); animation: float 6s ease-in-out infinite; transition: translate .25s ease-out;
}
.hero-float i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.hero-float strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.hero-float span { color: var(--text-muted); font-size: var(--text-xs); }
.hero-float-a { left: -6%; bottom: 20%; }
.hero-float-a i { background: rgba(39,174,96,.12); color: var(--success); }
.hero-float-b { right: -4%; top: 8%; animation-delay: -3s; }
.hero-float-b i { background: rgba(255,179,0,.15); color: var(--accent-warm-dark); }
.hero-float-c { right: -8%; bottom: 30%; animation-delay: -1.5s; }
.hero-float-c i { background: rgba(37,211,102,.14); color: #1fa855; }
.hero-float-d { left: -2%; top: 14%; animation-delay: -4.5s; }
.hero-float-d i { background: var(--primary-bg-light); color: var(--primary); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
    .orbit, .hero-float { animation: none; }
    .orbit-dot { display: none; }
}

.hero-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--primary);
    font-size: 20px; padding-left: 4px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.hero-video-play::before, .hero-video-play::after {
    content: ''; position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 2px solid #fff; transform: translate(-50%, -50%); pointer-events: none;
}
.hero-video-play::before { width: 80px; height: 80px; animation: pulseRing 2s infinite linear; }
.hero-video-play::after { width: 96px; height: 96px; animation: pulseRing 2s infinite linear 1s; }
@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: .6; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* ── Partners marquee ──────────────────────────────── */
.partners { padding: 48px 0 52px; background: #fff; }
.partners-label { text-align: center; margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner-logo { flex: 0 0 auto; width: 170px; height: 72px; margin: 0 16px; display: grid; place-items: center; }
.partner-logo img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: var(--transition); }
.partner-logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Solutions ─────────────────────────────────────── */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1200px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
/* iRIMS-style: title, line art, then summary (always visible); hover adds the teal outline */
.solution-card {
    position: relative; padding: 30px 30px 32px; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid #e3e8ec; border-radius: 4px;
    box-shadow: 0 10px 30px rgba(15,23,42,.05); transition: box-shadow .25s ease;
}
.solution-card::before {
    content: ''; position: absolute; inset: -1px; border: 2px solid var(--primary); border-radius: inherit;
    opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.solution-card:hover { box-shadow: 0 18px 44px rgba(15,23,42,.1); }
.solution-card:hover::before { opacity: 1; }
.solution-card h3 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.2; color: var(--text-primary); }
.solution-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; margin-top: 24px; }
.solution-art { align-self: center; width: 100%; max-width: 220px; color: #5b6770; }
.solution-art svg { display: block; width: 100%; height: auto; }
.solution-art .art-fill { fill: var(--primary-bg-light); }
.solution-art .art-dark { fill: #5b6770; }
.solution-card p { color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); text-align: justify; hyphens: auto; }

/* ── About ─────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 64px; }
/* About stage: cut-out photo + product "characters" */
.about-media { position: relative; }
.about-stage { position: relative; aspect-ratio: 4 / 5; max-width: 500px; margin: 0 auto; }
.about-stage-bg {
    position: absolute; inset: 6% 4% 0; border-radius: 40% 40% var(--radius-xl) var(--radius-xl); overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.22) 0 22%, transparent 23%),
        radial-gradient(circle at 20% 15%, rgba(255,179,0,.35), transparent 45%),
        linear-gradient(160deg, var(--accent) 0%, var(--primary) 55%, var(--surface-dark) 100%);
    box-shadow: var(--shadow-xl);
}
.about-stage-bg::after { /* dotted texture */
    content: ''; position: absolute; inset: 0; opacity: .18;
    background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 18px 18px;
}
.as-ring { position: absolute; left: 50%; top: 40%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); transform: translate(-50%, -50%); }
.as-ring-a { width: 70%; aspect-ratio: 1; animation: spin 50s linear infinite; }
.as-ring-b { width: 100%; aspect-ratio: 1; border-color: rgba(255,179,0,.35); animation: spin 80s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.about-person {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 1;
    height: 90%; width: auto; max-width: none; pointer-events: none;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
}

.char, .char-bubble { position: absolute; z-index: 2; animation: float 6s ease-in-out infinite; transition: translate .25s ease-out; }
.char {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: var(--text-sm); line-height: 1.3;
}
.char small { display: block; font-size: var(--fs-small); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }
.char strong { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.char-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.char-call { left: -18%; top: 12%; border-bottom-right-radius: 4px; animation-delay: -2.5s; }
.char-call .char-icon { background: var(--success); border-radius: 50%; position: relative; }
.char-call .char-icon::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); animation: callPulse 1.6s ease-out infinite; }
@keyframes callPulse { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.call-time { margin-left: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--success); font-variant-numeric: tabular-nums; }
.call-waves { display: inline-flex; align-items: center; gap: 2px; height: 16px; margin-left: 2px; }
.call-waves i { width: 3px; height: 6px; border-radius: 2px; background: var(--success); animation: callWave 1s ease-in-out infinite; }
.call-waves i:nth-child(2) { animation-delay: .15s; }
.call-waves i:nth-child(3) { animation-delay: .3s; }
@keyframes callWave { 0%, 100% { height: 5px; } 50% { height: 15px; } }
.char-sms { left: -10%; top: 34%; border-bottom-left-radius: 4px; }
.char-sms .char-icon { background: var(--primary); }
.ticks { display: inline-flex; margin-left: 6px; color: #34b7f1; font-size: 10px; letter-spacing: -4px; }
.char-bot { right: -10%; top: 30%; border-bottom-right-radius: 4px; animation-delay: -2s; }
.char-bot .char-icon { background: #6c5ce7; }
.typing { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.char-pay { left: -6%; bottom: 22%; animation-delay: -4s; }
.char-pay .char-icon { background: var(--success); border-radius: 50%; }
.char-ussd { right: -4%; bottom: 12%; padding: 8px 14px 8px 8px; background: var(--surface-dark); animation-delay: -1s; }
.char-ussd .char-icon { background: var(--accent-warm); color: var(--surface-dark); }
.ussd-code { color: #fff !important; font-family: var(--font-mono); font-size: var(--text-base) !important; letter-spacing: 1px; }

.char-bubble {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    font-size: 22px; color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.18); border: 3px solid #fff;
}
.char-bubble b { position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-warm); color: var(--surface-dark); font-size: var(--fs-small); line-height: 20px; text-align: center; }
.char-wa { background: #25d366; left: 24%; top: 0; animation-delay: -3s; }
.char-mail { background: #ea4335; right: 14%; top: 6%; animation-delay: -5s; }
.char-air { background: var(--accent-warm); color: var(--surface-dark); left: 2%; top: 52%; animation-delay: -1.5s; }
.char-data { background: #0984e3; right: 2%; top: 56%; animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
    .char, .char-bubble, .as-ring, .typing i, .call-waves i, .char-call .char-icon::after { animation: none; }
}
.about-copy p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); margin-bottom: 16px; }
.about-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.about-stat { flex: 1 1 120px; padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.stat-value { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; }

.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.mv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.mv-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 20px; margin-bottom: 16px; }
.mv-card h3 { font-size: var(--text-xl); margin-bottom: 10px; }
.mv-card p { color: var(--text-secondary); }

.values-title { text-align: center; margin-bottom: 24px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); transition: var(--transition); }
.value-item:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow-md); }
.value-item i { color: var(--accent-warm-dark); font-size: 20px; width: 24px; text-align: center; margin-top: 2px; }
.value-item strong { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; }
.value-item span { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-muted); }

/* Justified copy: hero headline + intro, About intro, mission/vision, core values */
.value-item span { display: block; }
.hero-sub, .about-copy p, .mv-card p, .value-item span { text-align: justify; hyphens: manual; -webkit-hyphens: manual; }

/* ── Ecites Konnect (platform) band: soft mint, same tint as the old insights banner ── */
.platform-section {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #eaf6f4 100%);
    color: var(--text-primary);
}
.platform-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.platform-copy > p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); margin-bottom: 28px; }
.platform-steps { list-style: none; display: grid; gap: 16px; }
.platform-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-secondary); font-size: var(--text-sm); }
.platform-steps li > span {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: transparent; border: 2px solid var(--accent-warm); color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); /* amber ring; dark numbers for contrast */
}
.platform-steps strong { display: block; color: var(--text-primary); font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; }
.platform-steps li { position: relative; }
/* Connector between step circles: from just under one circle (32px) to just above the next (16px list gap) */
.platform-steps li:not(:last-child)::before {
    content: ''; position: absolute; left: 15px; top: 36px; bottom: -12px; width: 2px; border-radius: 2px;
    background: var(--accent-warm); opacity: .7;
}

/* illustrative app mock (decorative, aria-hidden) */
.app-mock { background: #fff; color: var(--text-primary); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(6,120,112,.12); box-shadow: 0 24px 50px rgba(6,120,112,.14); }
.app-mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.app-mock-dots { display: flex; gap: 6px; }
.app-mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.app-mock-dots i:nth-child(2) { background: #febc2e; }
.app-mock-dots i:nth-child(3) { background: #28c840; }
.app-mock-title { font-size: var(--text-sm); font-weight: 700; color: var(--primary); }
.app-mock-shot { display: block; width: 100%; height: auto; }


.platform-integrations { padding: 20px 24px 24px; border-radius: var(--radius-lg); border: 1px dashed rgba(6,120,112,.3); background: rgba(255,255,255,.55); }
.pi-head { display: flex; align-items: center; gap: 18px; }
.pi-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 20px; }
.pi-copy { flex: 1; }
.pi-copy strong { display: block; color: var(--text-primary); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.pi-copy span { font-size: var(--text-sm); color: var(--text-secondary); }

/* Hub-and-spoke integrations diagram: dotted canvas, round glowing hub,
   rounded system cards, curved connectors with a flowing dash */
.pi-diagram {
    display: grid; margin-top: 22px; padding: 30px 32px 22px;
    grid-template-columns: 1fr 110px 190px 110px 1fr;
    grid-template-areas: "a wl hub wr c" "b wl hub wr d" "ch ch ch ch ch";
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 45%, rgba(20,149,138,.10), transparent 60%),
                radial-gradient(rgba(6,120,112,.16) 1.2px, transparent 1.6px) 0 0 / 22px 22px, #f7fbfa;
    border: 1px solid rgba(6,120,112,.12);
}
/* cells pad the cards so each card's centre sits exactly at 25% / 75% of the wire height */
.pi-cell { display: flex; align-items: stretch; padding: 10px 0; } /* cards fill their row, so every centre lines up with a wire end */
.pi-node {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px;
    background: #fff; border-radius: 16px; border: 1px solid rgba(6,120,112,.1);
    box-shadow: 0 10px 26px rgba(12,43,41,.07); transition: transform .2s ease, box-shadow .2s ease;
}
.pi-node:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(12,43,41,.1); }
.pi-node strong { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--text-primary); }
.pi-node small { display: block; font-size: var(--fs-small); color: var(--text-secondary); }
.pi-badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: var(--primary); background: var(--primary-bg-light); }
.pi-badge-warm { color: #b77a00; background: #fff4d6; }

.pi-wires { grid-row: 1 / 3; width: 100%; height: 100%; overflow: visible; }
.pi-wires-l { grid-area: wl; } .pi-wires-r { grid-area: wr; }
.pi-wires path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.pi-wire-track { stroke: rgba(6,120,112,.18); stroke-width: 6; }
.pi-wire-flow { stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 2 10; animation: piFlow 1.2s linear infinite; }
.pi-wire-warm { stroke: var(--accent-warm); }
.pi-wire-rev { animation-direction: reverse; }
@keyframes piFlow { to { stroke-dashoffset: -12; } }

.pi-hub { grid-area: hub; grid-row: 1 / 3; align-self: center; justify-self: center; position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.pi-hub-core {
    position: relative; z-index: 1; width: 150px; height: 150px; border-radius: 50%;
    display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; color: #fff;
    background: radial-gradient(circle at 35% 30%, var(--accent) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 18px 40px rgba(6,120,112,.35), inset 0 0 0 6px rgba(255,255,255,.12);
}
.pi-hub-core i { font-size: 26px; margin-bottom: 4px; }
.pi-hub-core strong { font-size: var(--fs-small); font-weight: 700; }
.pi-hub-core small { font-size: var(--fs-small); opacity: .8; }
.pi-hub-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(20,149,138,.35); animation: piPulse 2.6s ease-out infinite; }
.pi-hub-ring-2 { animation-delay: 1.3s; }
@keyframes piPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }

.pi-channels { grid-area: ch; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pi-channels span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(6,120,112,.14); font-size: var(--fs-small); color: var(--text-secondary); }
.pi-channels i { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .pi-wire-flow, .pi-hub-ring { animation: none; } }
@media (max-width: 960px) {
    .pi-diagram { grid-template-columns: 1fr 1fr; grid-template-areas: "hub hub" "a c" "b d" "ch ch"; padding: 22px; column-gap: 14px; }
    .pi-wires { display: none; }
    .pi-hub { grid-row: auto; margin-bottom: 8px; }
}
@media (max-width: 640px) {
    .pi-head { flex-wrap: wrap; }
    .pi-diagram { grid-template-columns: 1fr; grid-template-areas: "hub" "a" "b" "c" "d" "ch"; }
}

/* ── Contact ───────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 40px; align-items: start; }
/* Vertical timeline separator: three ringed pins joined by lines */
.contact-divider { align-self: stretch; display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.cd-dot {
    position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--primary); background: var(--surface-alt);
}
.cd-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.cd-line { flex: 1; width: 1.5px; margin: 10px 0; background: var(--primary); opacity: .55; }
.contact-info > p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); margin-bottom: 28px; }
/* ── Insight article page (layout from the legacy ecites.co.ke blogs-readmore.php) ── */
.article-page { padding: calc(var(--header-h) + 40px) 0 80px; background: var(--surface-alt); }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: var(--fs-small); font-weight: 600; color: var(--primary); }
.article-back:hover { color: var(--primary-dark); }
button.article-back { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
/* In-section reader on the homepage (same article partial as the standalone page) */
.insight-reader .article-shell { box-shadow: none; }
.insight-reader .article-aside { top: calc(var(--header-h) + 20px); }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px; background: #fff; border: 1px solid var(--border-light); box-shadow: 0 1px 4px rgba(15,23,42,.03); }
.article-main { display: grid; gap: 28px; align-content: start; }
.article-box { padding: 14px 14px 22px; border: 1px solid #eef1f0; }
.article-hero { position: relative; aspect-ratio: 16 / 7.5; margin-bottom: 20px; background: var(--primary-bg); }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-credit { position: absolute; left: 3px; bottom: 3px; padding: 6px 10px; background: rgba(255,255,255,.85); color: var(--text-secondary); font-size: var(--fs-small); }
.article-title { padding: 0 2px; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .2px; color: var(--text-primary); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 2px 20px; font-size: var(--fs-small); color: var(--text-secondary); }
.article-meta i { margin-right: 4px; color: var(--primary); }
.article-body { padding: 0 2px; font-size: var(--fs-body); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.article-body p { margin-bottom: 14px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin: 20px 0 10px; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; line-height: 1.4; color: var(--text-primary); }
.article-body ul, .article-body ol { margin: 0 0 14px 22px; list-style: revert; }
.article-body img { max-width: 100%; height: auto; margin: 12px 0; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body pre, .article-body code { background: var(--surface-alt); font-family: var(--font-mono); font-size: var(--fs-small); }
.article-body pre { padding: 14px; overflow-x: auto; margin-bottom: 14px; }
.article-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; color: #fff; font: inherit; font-size: var(--fs-small); cursor: pointer; transition: filter .15s ease; }
.share-btn:hover { filter: brightness(.92); color: #fff; }
.share-whatsapp { background: #1f9d3a; }
.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-copy { background: #7d8583; }
/* Article area type roles (one font, DM Sans): box headings 14/600, links 14/500 sentence case, supporting text 14/400 */
.article-box-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; color: var(--text-primary); }
.article-signin { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; background: var(--primary-bg-light); border: 1px solid rgba(6,120,112,.18); }
.article-signin span { flex: 1; min-width: 200px; font-size: var(--fs-small); color: var(--text-secondary); }
.comment-list { display: grid; gap: 14px; }
.comment { padding: 14px 16px; background: #f2f3f3; border-radius: 4px 4px 26px 4px; }
.comment p { font-size: var(--fs-small); color: var(--text-primary); }
.comment p i { margin-right: 6px; color: var(--primary); }
.comment small { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--text-muted); }
.comment-reply { margin-top: 10px; padding: 10px 12px; background: #fff; border-left: 3px solid var(--primary); font-size: var(--fs-small); color: var(--text-secondary); }
.comment-reply strong { color: var(--primary); }
.comment-empty { font-size: var(--fs-small); color: var(--text-secondary); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--primary-bg); }
.related-item span { display: block; margin-top: 8px; font-size: var(--fs-small); font-weight: 500; line-height: 1.5; color: var(--text-primary); }
.related-item:hover span { color: var(--primary); text-decoration: underline; }
.article-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-tag { display: inline-block; padding: 7px 10px; margin-bottom: 10px; background: var(--primary); color: #fff; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; }
.aside-list a { display: flex; gap: 8px; padding: 14px 4px; border-bottom: 1px solid #eef1f0; font-size: var(--fs-small); font-weight: 500; line-height: 1.5; color: var(--text-primary); }
.aside-list a i { margin-top: 3px; color: var(--primary); }
.aside-list a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 960px) {
    .article-shell { grid-template-columns: 1fr; padding: 16px; }
    .article-aside { position: static; }
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* ── Search box (Insights + FAQ): same field style as the contact form ── */
.site-search { position: relative; }
.site-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; pointer-events: none; }
.site-search input {
    width: 100%; padding: 13px 44px 13px 44px; border: 2px solid #e0e7e3; border-radius: 10px; background: #fff;
    font: inherit; font-size: var(--fs-small); color: var(--text-primary); outline: none; transition: border-color .2s ease;
}
.site-search input::placeholder { color: var(--text-muted); }
.site-search input:focus { border-color: #14b8a6; }
.site-search input::-webkit-search-cancel-button { display: none; }
.site-search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center;
    background: transparent; color: var(--text-muted); cursor: pointer;
}
.site-search-clear:hover { background: var(--surface-alt); color: var(--text-primary); }
.search-status { margin: 10px 2px 0; font-size: var(--fs-small); color: var(--text-muted); }
.search-status:empty { display: none; }
.insights-search { margin-top: -20px; } /* full container width, lined up with the cards */
#insight-search-status { text-align: center; }
.insights-search ~ .insights-grid, .insights-search ~ .insight-reader { margin-top: 36px; }
.faq-search { margin-bottom: 8px; }
#faq-search-status { margin-bottom: 14px; }

/* ── FAQ (layout from the TESA site): intro + help card | accordion ── */
.faq-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-intro > p { color: var(--text-secondary); font-size: var(--fs-body); margin-bottom: 32px; }
.faq-help { padding: 26px 28px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq-help strong { display: block; font-size: var(--fs-body); font-weight: 600; color: var(--text-primary); }
.faq-help p { margin: 4px 0 18px; font-size: var(--fs-small); color: var(--text-secondary); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 0; border: 0; background: none; cursor: pointer; text-align: left;
    font: inherit; font-size: var(--fs-body); font-weight: 600; color: var(--text-primary);
}
.faq-q:hover { color: var(--primary); }
.faq-q:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 2px; border-radius: 4px; }
/* +/- circle: outlined when closed, filled teal when open */
.faq-toggle {
    position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; transition: background .2s ease, border-color .2s ease;
}
.faq-toggle::before, .faq-toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 1px;
    background: var(--text-primary); transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-toggle { background: var(--primary); border-color: var(--primary); }
.faq-item.is-open .faq-toggle::before, .faq-item.is-open .faq-toggle::after { background: #fff; }
.faq-item.is-open .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
/* 0fr -> 1fr animates the answer's height */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 58px 26px 0; font-size: var(--fs-body); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.faq-item[hidden] { display: none; }
/* Shared "Show more... / ...Show less" toggle (FAQ + Insights) */
.show-more { margin-top: 28px; }
.show-more i { transition: transform .2s ease; }
.show-more:hover i { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-toggle::before, .faq-toggle::after { transition: none; } }
@media (max-width: 960px) {
    .faq-split { grid-template-columns: 1fr; gap: 40px; }
    .faq-a p { padding-right: 0; }
}

/* Contact channel cards: teal icon badge + value(s) as links, regular weight */
.contact-cards { display: grid; gap: 14px; max-width: 420px; }
.cc-card {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: border-color .2s ease;
}
.cc-card:hover { border-color: var(--primary-lighter); }
.cc-icon {
    flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-size: 18px;
}
.cc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-value { display: block; font-size: var(--fs-body); font-weight: 400; color: var(--text-primary); }
a.cc-value:hover, .cc-card-link:hover .cc-value { color: var(--primary); }
.cc-arrow {
    flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--border); color: var(--primary); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cc-card-link:hover .cc-arrow { background: var(--primary); border-color: var(--primary); color: #fff; }
.cc-card-link:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .req { color: var(--danger); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 14px; border: 2px solid #e0e7e3; border-radius: 10px;
    font: inherit; font-size: var(--text-sm); line-height: 20px; font-weight: 400; color: var(--text-primary); background: #fff; outline: none; transition: border-color .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #14b8a6; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Collapsible fieldset header (portal portalFieldsetHeader): icon + label + rule */
.contact-form .fs-header {
    display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 18px; padding: 0;
    border: 0; background: none; cursor: pointer; user-select: none; font: inherit;
    font-size: var(--fs-small); font-weight: 600; color: #8a8da0; text-align: left;
}
.contact-form .fs-header:hover, .contact-form .fs-header:focus-visible { color: var(--primary); outline: none; }
.contact-form .fs-icon { flex: none; font-size: 14px; }
.contact-form .fs-rule { flex: 1; height: 1px; background: #e0e7e3; }
.contact-form .fs-content[hidden] { display: none; }

/* Floating labels (portal .floating-label-group): label rests inside the field,
   floats onto the border in teal on focus / once filled */
.fl-group { position: relative; margin-bottom: 18px; }
.fl-group label {
    position: absolute; left: 12px; top: 26px; transform: translateY(-50%); z-index: 1; /* centre of a 52px field; fixed so an error message below doesn't shift it */
    padding: 0 4px; background: transparent; pointer-events: none;
    font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); transition: all .2s ease-out;
}
.fl-group textarea + label { top: 16px; transform: none; }
.fl-group input:focus + label, .fl-group input:not(:placeholder-shown) + label,
.fl-group textarea:focus + label, .fl-group textarea:not(:placeholder-shown) + label,
.fl-group select + label {
    top: 0; left: 10px; transform: translateY(-50%);
    font-size: var(--fs-small); font-weight: 600; color: var(--primary); background: #fff;
}
/* Phone (intl-tel-input, as the portal's #ca-phone-wrap): the input's own "Phone Number"
   placeholder shows at rest; the label only appears once floated (.fl-active from JS) */
.fl-group .iti { display: block; width: 100%; }
.fl-group .iti__selected-dial-code { font-size: var(--text-sm); color: var(--text-primary); }
.fl-phone label { opacity: 0; }
.fl-phone.fl-active label, .fl-phone.error-state label {
    opacity: 1; top: 0; left: 10px; transform: translateY(-50%);
    font-size: var(--fs-small); font-weight: 600; color: var(--primary); background: #fff;
}
.fl-phone.fl-active .iti input { border-color: #14b8a6; }
.fl-phone.error-state .iti input { border-color: var(--danger); }
.contact-form input::placeholder { color: var(--text-muted); opacity: 1; }
/* Country list renders inline under the field (mobile: intl-tel-input's fullscreen popup) */
.iti--container { z-index: 160; }
.fl-group .iti__country-list { z-index: 20; }
.iti__search-input, .iti__country-list { font-family: var(--font-sans); font-size: var(--fs-small); }
/* Undo the .contact-form input field styling on the list's own search box */
.contact-form .iti__search-input { padding: 9px 12px; border: 0; border-bottom: 1px solid #e0e7e3; border-radius: 0; }
.contact-form .iti__search-input:focus { border-color: #e0e7e3; }

/* Searchable dropdown (portal .pss-*): readonly display field + fixed panel with Search box */
.contact-form .pss-input { padding-right: 40px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pss-caret { position: absolute; right: 16px; top: 26px; transform: translateY(-50%); color: #8a8da0; font-size: 12px; pointer-events: none; transition: transform .2s ease; }
.pss-input[aria-expanded="true"] ~ .pss-caret { transform: translateY(-50%) rotate(180deg); }
.pss-input[aria-expanded="true"] { border-color: #14b8a6; }
.pss-dropdown {
    position: fixed; z-index: 150; overflow: hidden; background: #fff;
    border: 1px solid #e0e7e3; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.12);
    display: flex; flex-direction: column;
}
.pss-search {
    flex: none; width: calc(100% - 24px); margin: 10px 12px; padding: 8px 12px;
    border: 1px solid #e0e7e3; border-radius: 8px; font: inherit; font-size: var(--fs-small); color: var(--text-primary); outline: none;
}
.pss-search:focus { border-color: #14b8a6; }
.pss-options { flex: 1; min-height: 0; max-height: 220px; overflow-y: auto; border-top: 1px solid #edf2f0; }
.pss-option { padding: 9px 14px; font-size: var(--fs-small); color: var(--text-primary); cursor: pointer; }
.pss-option:hover { background: #f1f8f5; }
.pss-option.pss-active { background: #f1f8f5; color: var(--primary); font-weight: 600; }
.pss-empty { padding: 10px 14px; font-size: var(--fs-small); color: #8a8da0; }

.field-error-msg { display: none; margin-top: 4px; font-size: var(--fs-small); font-weight: 500; color: var(--danger); }
.fl-group.error-state .field-error-msg { display: block; }
.fl-group.error-state input, .fl-group.error-state textarea { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(220,53,69,.08); }
.fl-group.error-state label { color: var(--danger); }

/* ── Footer ────────────────────────────────────────── */
/* Simple centred footer, as on www.seghu.org; light colours from platform.seghu.org
   (white/80 + blur, slate-200/60 borders, slate-500 text). */
.site-footer {
    position: relative; z-index: 1; background: rgba(255,255,255,.8);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(226,232,240,.6); color: #62748e; padding: 56px 0 28px;
}
.footer-inner { max-width: 768px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.footer-link { font-size: var(--text-sm); font-weight: 500; color: var(--primary); }
.footer-link:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(6,120,112,.1); font-size: var(--text-xs); }

/* ── Support chat widget (WhatsApp hand-off) ── */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: #10b76f; color: #fff; font-family: var(--font-display); font-size: var(--fs-small); font-weight: 700;
    box-shadow: 0 10px 30px rgba(16,183,111,.35); transition: background .15s, transform .15s;
}
.wa-pill:hover { background: #0e9f61; transform: translateY(-2px); }
.wa-pill:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; }
.wa-pill-icon { position: relative; font-size: 28px; line-height: 1; }
.wa-dot { position: absolute; top: -4px; right: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #10b76f; }
.wa-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: #fff; animation: waPulse 2s ease-out infinite; }
@keyframes waPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

.wa-card {
    width: 360px; max-width: calc(100vw - 32px); padding: 22px; border-radius: 28px; background: #fff;
    border: 1px solid rgba(16,183,111,.25); box-shadow: 0 24px 60px rgba(15,23,42,.18);
    transform-origin: bottom right; animation: waCardIn .22s ease;
}
.wa-card[hidden] { display: none; }
@keyframes waCardIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.wa-card-avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #10b76f; color: #fff; font-size: 20px; }
.wa-card-avatar .wa-dot { top: -2px; right: -2px; width: 14px; height: 14px; background: #10b76f; border-color: #d1fae5; }
.wa-card-avatar .wa-dot::after { background: #10b76f; }
.wa-card-titles { flex: 1; min-width: 0; }
.wa-card-title { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; color: var(--text-primary); }
.wa-card-status { display: flex; align-items: center; gap: 5px; font-size: var(--fs-small); font-weight: 600; color: #10b76f; }
.wa-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b76f; }
.wa-card-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #4b5563; cursor: pointer; }
.wa-card-close:hover { background: #f3f4f6; color: #111; }
.wa-card-bubble { margin-top: 18px; padding: 16px 18px; border-radius: 20px; background: #f6f3f1; border: 1px solid #ece6e1; }
.wa-card-bubble strong { display: block; font-size: var(--fs-body); color: var(--text-primary); }
.wa-card-bubble p { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.55; color: #6b7280; }
.wa-card-number { margin: 16px 0 14px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; color: #ea580c; }
.wa-card-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 999px;
    background: #10b76f; color: #fff !important; font-size: var(--fs-small); font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 24px rgba(16,183,111,.3); transition: background .15s;
}
.wa-card-cta:hover { background: #0e9f61; }
@media (max-width: 480px) {
    .wa-widget { right: 16px; bottom: 16px; }
    .wa-pill { padding: 10px 18px 10px 12px; }
}
.to-top {
    position: fixed; right: 26px; bottom: 88px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; border: 0; cursor: pointer; font-size: 18px;
    background: #111318; color: rgba(255,255,255,.85); box-shadow: 0 8px 20px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #2a2d35; color: #fff; }
.to-top:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; }
.to-top-solo { bottom: 20px; }
body.wa-open .to-top { opacity: 0; visibility: hidden; }

/* ── Overlay modal (used by the hero product-tour video) ── */
.insight-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.insight-modal-backdrop { position: fixed; inset: 0; background: rgba(12,43,41,.6); backdrop-filter: blur(4px); }
.insight-modal-panel { position: relative; width: 100%; max-width: 1100px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 32px; outline: none; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.insight-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-alt); color: var(--text-secondary); font-size: 16px; cursor: pointer; }
.insight-modal-close:hover { background: var(--danger); color: #fff; }
body.modal-open { overflow: hidden; }


/* ── Accessibility tools (partials/accessibility, website.js initA11y) ── */
.a11y-tab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 95;
    width: 34px; height: 42px; border: 0; border-radius: 9px 0 0 9px; cursor: pointer;
    display: grid; place-items: center; background: var(--primary); color: #fff;
    box-shadow: -4px 6px 18px rgba(6,120,112,.3); transition: width .15s ease, background .15s ease;
}
.a11y-tab:hover { width: 38px; background: var(--primary-dark); }
.a11y-tab:focus-visible, .a11y-panel button:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 2px; }
.a11y-panel {
    position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 150;
    width: 250px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.2); overflow: hidden;
    font-family: var(--font-sans);
}
.a11y-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--primary); color: #fff; }
.a11y-head h2 { flex: 1; font-size: var(--fs-body); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.a11y-close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; font-size: 12px; }
.a11y-close:hover { background: rgba(255,255,255,.3); }
.a11y-list { overflow-y: auto; }
.a11y-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
.a11y-label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary); }
.a11y-label i { width: 16px; text-align: center; color: var(--primary); font-size: 13px; }
.a11y-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .2s ease; }
.a11y-switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.a11y-switch[aria-checked="true"] { background: #067870; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.a11y-switch[aria-checked="true"] span { transform: translateX(18px); }
.a11y-size { display: flex; gap: 4px; }
.a11y-size button { min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-weight: 600; font-size: var(--fs-small); color: var(--text-primary); cursor: pointer; }
.a11y-size button:hover { border-color: var(--primary); color: var(--primary); }
.a11y-size button:disabled { opacity: .4; cursor: default; }
.a11y-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px; background: var(--surface-alt); font-size: var(--fs-small); color: var(--text-muted); }
.a11y-reset { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: var(--fs-small); cursor: pointer; text-decoration: underline; }

/* modes */
html.a11y-contrast {
    --text-primary: #000; --text-secondary: #111; --text-muted: #2b2b2b;
    --border: #555; --border-light: #888; --primary: #045a54;
}
html.a11y-contrast .site-header, html.a11y-contrast main, html.a11y-contrast .site-footer { filter: contrast(1.2); }
html.a11y-contrast .site-footer { color: #111; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-no-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-readable body, html.a11y-readable body *:not(.fa):not([class^="fa-"]) {
    font-family: Verdana, Tahoma, 'Segoe UI', sans-serif !important; letter-spacing: .02em; word-spacing: .08em;
}
html.a11y-readable p, html.a11y-readable li { line-height: 1.8; }
html.a11y-titles :is(h1, h2, h3, h4):not(.a11y-panel *) {
    outline: 2px dashed var(--accent-warm); outline-offset: 4px; border-radius: 2px;
}
html.a11y-links a:not(.a11y-panel *) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid var(--accent-warm); outline-offset: 2px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1080px) {
    .main-nav a { padding: 8px 10px; }
}
@media (max-width: 960px) {
    .section { padding: 72px 0; }
    .hero { padding-top: calc(var(--header-h) + 48px); }
    .hero-inner, .about-split, .platform-top, .contact-split { grid-template-columns: 1fr; gap: 40px; }
    .contact-divider { display: none; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .pi-head { flex-wrap: wrap; }

    /* mobile nav drawer */
    .nav-burger { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
        flex-direction: column; gap: 0; padding: 12px 16px 20px;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: var(--transition);
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--border-light); border-radius: 0; } /* same 14px as the desktop menu */
    .main-nav a:last-child { border-bottom: 0; }
    .header-inner { gap: 12px; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    :root { --header-h: 76px; }
    .brand img { height: 60px; }
    .hero-float { padding: 9px 12px; gap: 9px; }
    .hero-float i { width: 30px; height: 30px; font-size: 14px; }
    .hero-float-a { left: 0; bottom: 14%; }
    .hero-float-c, .hero-float-d { display: none; }
    .char { padding: 7px 10px 7px 7px; gap: 7px; }
    .char strong { font-size: var(--text-xs); }
    .char-icon { width: 28px; height: 28px; font-size: 13px; }
    .char-sms, .char-pay { left: 0; }
    .char-sms { top: 36%; }
    .char-wa { left: 2%; top: 14%; }
    .char-call { left: auto; right: 0; top: -2%; }
    .call-waves { display: none; }
    .char-mail { right: 2%; top: 22%; }
    .char-bot { top: 44%; }
    .char-data { top: 64%; }
    .char-bot, .char-ussd { right: 0; }
    .char-bubble { width: 40px; height: 40px; font-size: 18px; }
    .hero-float-b { right: 0; top: 4%; }
    .solutions-grid, .mv-grid, .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
    .insight-modal { padding: 0; }
    .insight-modal-panel { border-radius: 0; min-height: 100%; padding: 56px 16px 24px; }
    .btn-dashboard { gap: 8px; padding: 5px 5px 5px 14px; font-size: var(--text-sm); }
    .btn-dashboard-arrow { width: 24px; height: 24px; }
    .platform-integrations .btn { width: 100%; }
}
