/* =========================================================
   FMS — Institutional modern
   Cool paper / navy ink / brand blue. Architecture-led.
   ========================================================= */

:root {
    /* From fms_akeo.png — navy wordmark + lime S accent */
    --ink: #001040;
    --ink-soft: #0a1a4a;
    --brand: #001040;
    --brand-deep: #000828;
    --brand-bright: #0b3d9b;
    --accent: #68b830;
    --signal: #68b830;
    --paper: #f4f6fa;
    --paper-2: #e9eef6;
    --line: rgba(0, 16, 64, 0.12);
    --muted: #5a6578;
    --white: #ffffff;
    --primary: #001040;
    --secondary: #68b830;
    --dark: #001040;
    --light: #e9eef6;
    --font-display: var(--font-poppins), sans-serif;
    --font-body: var(--font-inter), sans-serif;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand,
.brand-mark {
    font-family: var(--font-display) !important;
    letter-spacing: -0.015em;
    font-weight: 700 !important;
    line-height: 1.25;
    overflow: visible;
}

p, .lead, .nav-link, a, li, small, span, label, input, button {
    font-family: var(--font-body);
}

/* Grain overlay removed — SVG feTurbulence caused severe scroll jank */

/* Kill theme pill / soft primary look */
.btn {
    border-radius: 2px !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
}

.btn-primary {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 0 var(--accent);
}

.btn-primary:hover {
    background: var(--brand-bright) !important;
    border-color: var(--brand-bright) !important;
}

.btn-outline-light {
    border-width: 1px;
    border-radius: 2px !important;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    padding: 0.85rem 1.5rem;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--ink);
}

.text-primary {
    color: var(--brand) !important;
}

.bg-primary {
    background-color: var(--brand) !important;
}

/* ---------- Nav (sticky) ---------- */
#top-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1030;
    background: transparent;
}

#top-nav .navbar {
    background: #fff !important;
    border-bottom: 1px solid var(--line);
    box-shadow: none !important;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.navbar-brand {
    padding: 0.35rem 0.55rem !important;
    margin-right: 0.5rem;
    border-radius: 8px;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
}

.brand-mark {
    font-size: 1.65rem !important;
    color: var(--brand) !important;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--ink-soft) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 0.9rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--brand) !important;
}

.nav-cta {
    margin-left: 0.5rem;
    padding: 0.55rem 1.15rem !important;
}

@media (max-width: 991.98px) {
    .nav-cta {
        margin: 0.5rem 1rem 1rem;
        display: inline-block;
    }
}

/* ---------- Hero: full-bleed composition ---------- */
.btn-accent {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(104, 184, 48, 0.28);
    border-radius: 6px !important;
}

.btn-accent:hover {
    background: #5aa628 !important;
    border-color: #5aa628 !important;
    color: #fff !important;
}

.btn-navy {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 16, 64, 0.18);
    border-radius: 6px !important;
}

.btn-navy:hover {
    background: var(--brand-bright) !important;
    border-color: var(--brand-bright) !important;
    color: #fff !important;
}

.hero-fms {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 7.5rem 0 5.5rem;
    background: #f7f9fc;
    color: var(--ink);
    overflow: hidden;
}

.hero-fms::before,
.hero-fms::after {
    content: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.hero-fms h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    line-height: 1.18;
    color: var(--ink);
    max-width: 16ch;
    margin-bottom: 1.25rem;
    padding-bottom: 0.1em;
}

.hero-fms .lead {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 36rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

/* Right-side bleed panel — flush edges, no framed card */
.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: 420px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

@media (min-width: 992px) {
    .hero-fms {
        min-height: auto;
        padding: 7.5rem 0 5.5rem;
    }

    .hero-wave svg {
        height: 100px;
    }
}

@media (max-width: 991.98px) {
    .hero-photo {
        aspect-ratio: 16 / 10;
        max-height: 260px;
    }

    .hero-fms {
        display: block;
        padding-top: 6.5rem;
    }
}

@media (max-height: 820px) and (min-width: 992px) {
    .hero-photo {
        max-height: 340px;
    }

    .hero-fms {
        padding: 6.5rem 0 4rem;
    }
}

.band-white {
    background: #fff;
}

.why-choose.section-pad {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.why-choose__intro .section-heading {
    margin-bottom: 0.35rem;
}

.why-choose__intro .section-lede {
    color: var(--muted);
    font-size: 1.05rem;
}

.why-choose__rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0 2.25rem;
    opacity: 1;
}

.why-choose__item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.why-choose__icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.why-choose__icon svg {
    width: 2.15rem;
    height: 2.15rem;
    display: block;
}

.why-choose__icon--use {
    background: rgba(11, 61, 155, 0.1);
}

.why-choose__icon--secure {
    background: var(--brand-bright);
}

.why-choose__icon--loan {
    background: rgba(104, 184, 48, 0.12);
}

.why-choose__icon--report {
    background: rgba(0, 16, 64, 0.08);
}

.why-choose__item h3 {
    font-size: 1.08rem;
    margin: 0.35rem 0 0.3rem;
    color: var(--ink);
}

.why-choose__item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ---------- Sections ---------- */
.section-pad {
    padding: 6rem 0;
    position: relative;
}

.section-pad.tight {
    padding: 4.5rem 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.section-label::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent);
    transform: skewX(-18deg);
    flex-shrink: 0;
}

.section-heading {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: 1.22;
    margin-bottom: 1rem;
    max-width: 20ch;
    padding-bottom: 0.08em;
}

.section-lede {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 38rem;
    line-height: 1.7;
}

.section-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.section-intro .section-heading,
.section-intro .section-lede {
    margin-inline: auto;
}

.split-media {
    position: relative;
    min-height: 420px;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.split-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(0, 16, 64, 0.35));
    pointer-events: none;
}

/* Alternating photo bands */
.band-photo {
    position: relative;
    color: #fff;
    padding: 6.5rem 0;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.band-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 16, 64, 0.88), rgba(0, 16, 64, 0.52));
    pointer-events: none;
}

.band-photo::after {
    content: none;
}

.band-photo .container {
    position: relative;
    z-index: 1;
}

.band-photo .section-label {
    color: rgba(255, 255, 255, 0.75);
}

.band-photo .section-label::before {
    background: var(--accent);
}

.band-photo .section-lede {
    color: rgba(255, 255, 255, 0.78);
}

.band-dark {
    background: var(--ink);
    color: #fff;
}

.band-dark .section-label {
    color: #8fb0f0;
}

.band-dark .section-lede,
.band-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.band-paper {
    background-color: var(--paper);
    position: relative;
    isolation: isolate;
}

.band-paper-2 {
    background-color: var(--paper-2);
    position: relative;
    isolation: isolate;
}

.band-paper::before,
.band-paper-2::before {
    content: none;
}

.band-paper::after,
.band-paper-2::after {
    content: none;
}

.band-paper > .container,
.band-paper-2 > .container {
    position: relative;
    z-index: 1;
}

/* Integrations — split copy + logo cloud + rail cards */
.integrations.band-paper {
    background-color: var(--paper);
    overflow: hidden;
}

.integrations.band-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        url('/img/patterns/integrations-circuit.svg') right bottom / min(1100px, 92%) auto no-repeat;
    opacity: 0.55;
}

.integrations > .container {
    position: relative;
    z-index: 1;
}

.integrations-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.integrations-copy .section-heading {
    max-width: 14ch;
}

.integrations-copy .section-lede {
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.integrations-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.integrations-proof {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.45;
}

.integrations-cloud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    align-content: center;
    padding: 0.25rem 0 0.25rem 0.35rem;
}

.integrations-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 4.6rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 16, 64, 0.1);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 16, 64, 0.07);
}

.integrations-tile img {
    display: block;
    max-width: 100%;
    max-height: 2.35rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.integrations-tile--ink {
    background: var(--ink);
    border-color: var(--ink);
}

.integrations-tile--ink img {
    filter: brightness(0) invert(1);
}

.integrations-tile--accent {
    background: #fff;
    border-color: rgba(104, 184, 48, 0.55);
    box-shadow: 0 10px 24px rgba(104, 184, 48, 0.16);
}

.integrations-tile--soft {
    background: #eef3fb;
    border-color: rgba(0, 16, 64, 0.08);
}

.integrations-tile--dark {
    background: #111;
    border-color: #111;
}

.integrations-tile--mtn {
    background: #ffcc00;
    border-color: #e6b800;
}

/* Column stagger for a light cloud feel without overlap */
.integrations-tile--2,
.integrations-tile--5,
.integrations-tile--8,
.integrations-tile--11 { translate: 0 0.9rem; }
.integrations-tile--3,
.integrations-tile--6,
.integrations-tile--9,
.integrations-tile--12 { translate: 0 0.4rem; }

.integrations-rails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.integrations-rail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.5rem 1.35rem 1.6rem;
    box-shadow: 0 8px 24px rgba(0, 16, 64, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.integrations-rail:hover {
    border-color: rgba(0, 16, 64, 0.22);
    transform: translateY(-3px);
}

.integrations-rail h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 0.65rem;
    color: var(--ink);
}

.integrations-rail p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1199.98px) {
    .integrations-rails {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .integrations-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.25rem;
    }

    .integrations-copy .section-heading {
        max-width: none;
    }

    .integrations-cloud {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .integrations-cloud {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .integrations-tile,
    .integrations-tile--2,
    .integrations-tile--3,
    .integrations-tile--5,
    .integrations-tile--6,
    .integrations-tile--8,
    .integrations-tile--9,
    .integrations-tile--11,
    .integrations-tile--12 {
        height: 3.75rem;
        translate: 0;
    }

    .integrations-rails {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .integrations-rail:hover {
        transform: none;
    }
}

/* Skip layout/paint for offscreen sections while scrolling */
.section-pad,
.band-photo,
.cta-band,
.hero-fms,
.page-hero,
#footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

/* Product — 4-step process flow */
.product-flow {
    --flow-icon: 5.25rem;
    --flow-wave-y-peak: 5.75rem;
    --flow-wave-y-valley: 12.75rem;
    position: relative;
    margin-top: 0.75rem;
    padding: 0.25rem 0 0.75rem;
    min-height: 23rem;
}

.product-flow__wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 2.25rem;
    width: 100%;
    height: 13.5rem;
    color: var(--brand);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 8px 16px rgba(11, 61, 155, 0.12));
}

.product-flow__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1.25rem;
    min-height: 22rem;
}

.product-step {
    position: relative;
    min-height: 22rem;
}

.product-step__icon {
    position: absolute;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--flow-icon);
    height: var(--flow-icon);
    margin-left: calc(var(--flow-icon) / -2);
    border-radius: 50%;
    background: #eef2f8;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px rgba(0, 16, 64, 0.08),
        0 10px 20px rgba(0, 16, 64, 0.08);
    color: var(--ink);
    font-size: 1.65rem;
}

.product-step--1 .product-step__icon,
.product-step--3 .product-step__icon {
    top: calc(var(--flow-wave-y-valley) - var(--flow-icon) / 2);
}

.product-step--2 .product-step__icon,
.product-step--4 .product-step__icon {
    top: calc(var(--flow-wave-y-peak) - var(--flow-icon) / 2);
}

.product-step__card {
    position: absolute;
    left: 50%;
    width: min(100%, 13.5rem);
    margin-left: -6.75rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 16, 64, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 16, 64, 0.06);
    text-align: center;
}

.product-step__card--top {
    top: 0;
}

.product-step__card--bottom {
    bottom: 0;
}

.product-step__card h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--ink);
}

.product-step__card p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.product-step__bridge {
    position: absolute;
    left: 50%;
    width: 2.75rem;
    height: 3.25rem;
    margin-left: -1.375rem;
    color: rgba(0, 16, 64, 0.32);
    z-index: 1;
}

.product-step__bridge--down {
    top: calc(var(--flow-wave-y-valley) - var(--flow-icon) / 2 - 3.5rem);
}

.product-step__bridge--up {
    top: calc(var(--flow-wave-y-peak) + var(--flow-icon) / 2 + 0.2rem);
}

.product-step__stem {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 1.35rem;
    margin-left: -1px;
    color: rgba(0, 16, 64, 0.24);
    z-index: 1;
}

.product-step--1 .product-step__stem,
.product-step--3 .product-step__stem {
    top: calc(var(--flow-wave-y-valley) + var(--flow-icon) / 2 + 0.1rem);
}

.product-step--2 .product-step__stem,
.product-step--4 .product-step__stem {
    top: calc(var(--flow-wave-y-peak) - var(--flow-icon) / 2 - 1.55rem);
}

.product-step__num {
    position: absolute;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    margin-left: -1.05rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(11, 61, 155, 0.2);
    z-index: 1;
}

.product-step__num--bottom {
    top: calc(var(--flow-wave-y-valley) + var(--flow-icon) / 2 + 1.75rem);
}

.product-step__num--top {
    top: calc(var(--flow-wave-y-peak) - var(--flow-icon) / 2 - 2.7rem);
}

@media (max-width: 991.98px) {
    .product-flow {
        min-height: 0;
    }

    .product-flow__wave {
        display: none;
    }

    .product-flow__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
        min-height: 0;
    }

    .product-step {
        position: static;
        display: grid;
        gap: 0.75rem;
        justify-items: center;
        min-height: 0;
    }

    .product-step__icon,
    .product-step__card,
    .product-step__bridge,
    .product-step__stem,
    .product-step__num {
        position: static;
        margin: 0;
        top: auto;
        bottom: auto;
        left: auto;
    }

    .product-step__bridge,
    .product-step__stem {
        display: none;
    }

    .product-step__card {
        width: 100%;
        max-width: none;
    }

    .product-step__icon {
        width: 4.75rem;
        height: 4.75rem;
        font-size: 1.55rem;
    }
}

@media (max-width: 575.98px) {
    .product-flow__steps {
        grid-template-columns: 1fr;
    }
}

.feature-stack {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 767.98px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

.feature-row h3,
.feature-row .feature-row__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
}

.feature-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.doc-callout {
    background-color: var(--ink);
    color: #fff;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.doc-callout__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    align-items: center;
    gap: 2rem 2rem;
    min-height: 460px;
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.doc-callout::before {
    content: none;
}

.doc-callout .copy {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-callout .section-label {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
}

.doc-callout .section-label::before {
    background: var(--accent);
}

.doc-callout .copy h3 {
    color: #fff;
    margin: 0 0 0.85rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.25;
    max-width: 16ch;
}

.doc-callout__lede {
    margin: 0 0 1.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 34rem;
}

.doc-callout__factors {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.doc-callout__factors li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.doc-callout__factors span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--accent);
    line-height: 1.4;
    padding-top: 0.1rem;
}

.doc-callout__factors strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
    letter-spacing: -0.01em;
}

.doc-callout__factors p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
    line-height: 1.45;
}

.doc-callout .copy .btn {
    align-self: flex-start;
    width: auto;
}

.doc-infographic {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    min-height: 0;
    background: none;
}

.doc-infographic__stage {
    position: relative;
    width: min(100%, 42rem);
}

.doc-infographic__svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.32));
}

.doc-infographic__pcts text {
    fill: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-anchor: middle;
    dominant-baseline: middle;
}

.doc-infographic__num {
    fill: var(--accent);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.doc-infographic__name {
    fill: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
}

.doc-infographic__gauge-hint {
    fill: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
}

.doc-infographic__gauge-title {
    fill: var(--ink);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (max-width: 991.98px) {
    .doc-callout__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .doc-infographic__stage {
        width: min(100%, 32rem);
        margin-inline: auto;
    }
}

/* Channels — interactive slider */
.channel-controls {
    display: inline-flex;
    gap: 0.5rem;
}

.channel-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.channel-nav-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.channel-tab {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.channel-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.channel-tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: inset 3px 0 0 0 var(--accent);
}

.channel-slider {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    min-height: 440px;
}

.channel-track {
    position: relative;
    min-height: 440px;
}

.channel-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    pointer-events: none;
}

.channel-slide:not(.is-active) .channel-slide-media {
    background-image: none !important;
}

.channel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.channel-slide.is-exit {
    opacity: 0;
}

@media (max-width: 991.98px) {
    .channel-slide {
        grid-template-columns: 1fr;
        position: relative;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .channel-slide.is-active {
        display: grid;
    }

    .channel-track {
        min-height: 0;
    }

    .channel-slider {
        min-height: 0;
    }
}

.channel-slide-media {
    min-height: 440px;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.channel-slide-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 16, 64, 0.25), rgba(0, 8, 40, 0.55));
    pointer-events: none;
    z-index: 1;
}

.channel-slide-media::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    transform: skewX(-18deg);
    z-index: 2;
}

@media (max-width: 991.98px) {
    .channel-slide-media {
        min-height: 240px;
    }
}

.channel-slide-body {
    padding: clamp(1.75rem, 3vw, 2.75rem);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000828;
    background-image: linear-gradient(160deg, rgba(0, 16, 64, 0.94) 0%, rgba(0, 8, 40, 0.96) 100%);
}

.channel-index {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.channel-slide-body h3 {
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

.channel-slide-body > p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.35rem;
    max-width: 32rem;
}

.channel-slide-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.channel-slide-body li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-slide-body li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-slide-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 7px;
    height: 7px;
    background: var(--accent);
    transform: skewX(-18deg);
}

.channel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.channel-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
    .channel-slide {
        transition: none;
    }

    .channel-progress-bar {
        transition: none;
    }
}

/* Products — mosaic with Bootstrap Icons + short copy */
.product-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: #fff;
}

@media (min-width: 992px) {
    .product-mosaic {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 575.98px) {
    .product-mosaic {
        grid-template-columns: 1fr;
    }
}

.product-cell {
    padding: 1.35rem 1.25rem 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: background 0.2s ease;
}

.product-cell:hover {
    background: rgba(0, 16, 64, 0.04);
}

.product-cell .bi {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--brand-bright);
    margin-bottom: 0.85rem;
}

.product-cell h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.35;
    margin: 0 0 0.45rem;
}

.product-cell p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.product-meta {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* KYC — cards / blocks (no images) */
.kyc-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1199.98px) {
    .kyc-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .kyc-cards {
        grid-template-columns: 1fr;
    }
}

.kyc-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.35rem 1.25rem 1.5rem;
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.kyc-card:hover {
    border-color: rgba(0, 16, 64, 0.28);
    transform: translateY(-2px);
}

.kyc-card-num {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.kyc-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 0.55rem;
    color: var(--ink);
}

.kyc-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.kyc-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .kyc-blocks {
        grid-template-columns: 1fr;
    }
}

.kyc-block {
    background-color: #000828;
    background-image: linear-gradient(160deg, rgba(0, 16, 64, 0.94), rgba(0, 8, 40, 0.96));
    color: #fff;
    padding: 1.5rem 1.35rem;
}

.kyc-block h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: #fff;
}

.kyc-block h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: skewX(-18deg);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.kyc-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

.disclaimer {
    margin-top: 2rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Reporting */
.report-list {
    list-style: none;
    padding: 0.35rem 1.5rem 0.5rem;
    margin: 0;
    background: rgba(0, 8, 40, 0.82);
}

.report-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.report-list li:last-child {
    border-bottom: 0;
}

.report-list li span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 400;
    text-align: right;
}

/* Customers — quotes without card chrome */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 991.98px) {
    .quote-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .quote-grid {
        grid-template-columns: 1fr;
    }
}

.quote {
    border-top: 2px solid var(--accent);
    padding-top: 1.25rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-size: 0.95rem;
}

.rating span {
    margin-left: 0.45rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
}

.ref-quote {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    color: var(--ink) !important;
    margin-bottom: 1.15rem !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    overflow: visible;
}

.quote cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--muted);
    display: block;
}

.quote cite strong {
    color: var(--ink);
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

/* Global */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 2rem;
}

@media (max-width: 767.98px) {
    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-row div h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1;
}

.stat-row div p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.regions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.regions em {
    font-style: normal;
    color: #fff;
}

/* CTA */
.cta-band {
    position: relative;
    background-color: #000828;
    color: #fff;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-band::before {
    content: none;
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0, 16, 64, 0.82), rgba(11, 61, 155, 0.55));
    pointer-events: none;
    z-index: 0;
}

.cta-band .container {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    color: #fff;
    max-width: 16ch;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 32rem;
}

/* Footer — light text on navy; logo on white plate */
.footer.bg-dark,
#footer {
    background-color: #000828 !important;
    background-image: none !important;
    margin-top: 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    position: relative;
}

#footer::before {
    content: none;
}

#footer::after {
    content: none;
}

#footer > .container {
    position: relative;
    z-index: 1;
}

#footer h1,
#footer h4,
#footer .footer-col-title {
    font-family: var(--font-display);
    color: #fff !important;
}

#footer .footer-col-title {
    font-size: 1.5rem;
    font-weight: 500;
}

#footer p {
    color: rgba(255, 255, 255, 0.72) !important;
}

#footer a {
    color: rgba(255, 255, 255, 0.78);
}

#footer .btn-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Theme used Font Awesome; site loads Bootstrap Icons only */
#footer .btn.btn-link::before {
    content: '\f285';
    font-family: 'bootstrap-icons' !important;
    font-weight: normal !important;
    font-style: normal;
    margin-right: 0.55rem;
}

#footer .btn-link:hover {
    color: var(--accent) !important;
}

#footer .footer-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#footer .footer-meta a:hover {
    color: var(--accent);
}

.copyright {
    background: #00051c !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.copyright a {
    color: #fff !important;
}

.copyright a:hover {
    color: var(--accent) !important;
}

/* Motion — restrained reveals */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rise {
    animation: rise 0.7s ease both;
}

.rise-d1 { animation-delay: 0.08s; }
.rise-d2 { animation-delay: 0.16s; }
.rise-d3 { animation-delay: 0.28s; }
.rise-d4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .rise {
        animation: none;
    }
}

/* Soften Finanza spinner */
#spinner .spinner-border {
    color: var(--brand) !important;
}

.back-to-top {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    border-radius: 2px !important;
}

/* ---------- Inner pages ---------- */
.page-hero {
    position: relative;
    padding: 9rem 0 4rem;
    color: #fff;
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(105deg, rgba(0, 16, 64, 0.88), rgba(0, 16, 64, 0.55));
    pointer-events: none;
}

.page-hero::after {
    content: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .section-label {
    color: rgba(255, 255, 255, 0.75);
}

.page-hero .section-label::before {
    background: var(--accent);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    max-width: 18ch;
    line-height: 1.2;
    margin-bottom: 1rem;
    padding-bottom: 0.08em;
}

.page-hero .lede {
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.65;
}

.demo-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink-soft);
}

.demo-form .form-control,
.demo-form .form-select {
    border-radius: 2px;
    border-color: var(--line);
    padding: 0.75rem 0.9rem;
    background: #fff;
    box-shadow: none;
}

.demo-form .form-control:focus,
.demo-form .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 79, 214, 0.15);
}

.form-error {
    color: #b42318;
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.form-success {
    color: #067647 !important;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-aside h5,
.contact-aside .contact-aside__label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.contact-aside p,
.contact-aside a {
    color: var(--muted);
}

.contact-aside a:hover {
    color: var(--brand);
}

.btn-outline-dark {
    border-radius: 2px !important;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline-dark:hover {
    background: var(--ink);
    color: #fff;
}

.navbar-nav .nav-link.active {
    color: var(--brand) !important;
}

/* ---------- About — Akeo editorial story ---------- */
.akeo-story__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3.5rem 4.5rem;
    align-items: start;
}

.akeo-story__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: none;
    width: 100%;
    margin: 0 0 2rem;
    color: var(--ink);
}

.akeo-offices__label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.akeo-offices__grid {
    display: grid;
    gap: 1.75rem;
}

.akeo-office__region {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.akeo-office__city {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin: 0 0 0.25rem;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.akeo-office__role {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.akeo-office__detail {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 28rem;
}

.akeo-story__right {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-top: 0.35rem;
}

.akeo-block {
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--line);
}

.akeo-block:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.akeo-block__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.85rem;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.akeo-block__body {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.akeo-block__body:last-child {
    margin-bottom: 0;
}

.akeo-story__quote {
    margin: 0.5rem 0 0;
    padding: 1.5rem 0 0 1.35rem;
    border: 0;
    border-left: 3px solid var(--accent);
}

.akeo-story__quote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.akeo-story__quote p::before {
    content: '“';
}

.akeo-story__quote p::after {
    content: '”';
}

@media (max-width: 991.98px) {
    .akeo-story__layout {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .akeo-offices__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .akeo-story__right {
        padding-top: 0;
        border-top: 1px solid var(--line);
        padding-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .akeo-offices__grid {
        grid-template-columns: 1fr;
    }
}

.legal-doc {
    max-width: 48rem;
    color: var(--ink);
    line-height: 1.7;
}

.legal-doc h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--muted);
}

.legal-doc ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-doc a {
    color: var(--brand);
    text-decoration: underline;
}

