:root {
    --bg: #f5f7fc;
    --surface: rgba(255, 255, 255, 0.98);
    --ink: #15316d;
    --muted: #6578a3;
    --line: rgba(21, 49, 109, 0.12);
    --accent: #10c469;
    --accent-dark: #0aa758;
    --brand: #243f87;
    --brand-dark: #193069;
    --shadow: 0 22px 54px rgba(24, 48, 104, 0.12);
    --radius: 12px;
    --container: min(1180px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f7f9fd 0%, #edf2fa 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 28px rgba(26, 46, 90, 0.08);
}

.topbar-slim {
    background: #fff;
    border-bottom: 1px solid rgba(36, 63, 135, 0.10);
}
.topbar-slim__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
}
.topbar-slim .btn-region {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0 10px;
    min-height: 36px;
    color: var(--muted);
}
.topbar-slim .btn-region:hover,
.topbar-slim .country-picker.is-open .btn-region {
    background: rgba(36, 63, 135, 0.06);
}
.topbar-slim .submenu {
    top: 100%;
}

.header-top {
    background: var(--brand);
    color: #fff;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 126px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: clamp(2.6rem, 4.2vw, 3.9rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.brand small {
    color: rgba(255, 255, 255, 0.76);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.brand__logo {
    height: 90px;
    width: auto;
    display: block;
}

.brand__name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.01em;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2f6ff, #cdd8f2);
    color: var(--brand);
    font-weight: 800;
    border: 3px solid rgba(255, 255, 255, 0.54);
}

.header-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.info-chip__icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    flex: 0 0 auto;
}

.info-chip__icon::after {
    content: '';
    position: absolute;
    inset: 11px;
    border-radius: 999px;
    background: var(--accent);
}

.info-chip small,
.info-chip strong {
    display: block;
}

.info-chip small {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 3px;
}

.info-chip strong {
    font-size: 1.05rem;
    color: #fff;
}

.header-nav-wrap {
    background: #fff;
    border-bottom: 1px solid rgba(36, 63, 135, 0.08);
}

.nav-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
}

.nav-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* ── Colombia / Region toggle button ── */
.btn-region {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid rgba(36, 63, 135, 0.08);
    border-right: 1px solid rgba(36, 63, 135, 0.08);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    min-height: 56px;
}
.btn-region:hover,
.country-picker:hover .btn-region,
.country-picker.is-open .btn-region {
    background: rgba(36, 63, 135, 0.06);
    color: var(--brand);
}
.btn-region__flag {
    font-size: 1.1rem;
    line-height: 1;
}
.btn-region__label {
    letter-spacing: 0.02em;
}

/* Country picker wrapper — positions the submenu */
.country-picker {
    position: relative;
    display: flex;
}

.nav {
    display: flex;
    align-items: stretch;
}

.nav__item {
    position: relative;
    display: flex;
}

.nav a,
.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 26px;
    border: 0;
    border-left: 1px solid rgba(36, 63, 135, 0.08);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav__item:last-child > a,
.nav__item:last-child > .nav__toggle {
    border-right: 1px solid rgba(36, 63, 135, 0.08);
}

.nav .is-current,
.nav a:hover,
.nav__toggle:hover,
.nav a:focus-visible,
.nav__toggle:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--accent-dark);
}

.nav__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 10px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.submenu a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
}

.nav__item:hover .submenu,
.nav__item.is-open .submenu,
.country-picker:hover .submenu,
.country-picker.is-open .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu--right {
    left: auto;
    right: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button--small,
.button--primary {
    background: var(--accent);
    color: #fff;
}

.button--small {
    min-height: 56px;
    padding: 0 28px;
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.button--light {
    background: #fff;
    color: var(--accent-dark);
}

.hero {
    position: relative;
    overflow: clip;
    min-height: 620px;
    background: #111827;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 15, 28, 0.78) 0%, rgba(9, 15, 28, 0.62) 34%, rgba(16, 28, 58, 0.18) 68%, rgba(16, 28, 58, 0.04) 100%),
        linear-gradient(180deg, rgba(12, 20, 38, 0.16), rgba(12, 20, 38, 0.16));
    z-index: 2;
}

.hero__grid {
    position: relative;
    min-height: 620px;
    z-index: 3;
}

.hero__content {
    position: absolute;
}

.hero__content {
    inset: auto auto 160px 0;
    width: min(560px, calc(100% - 80px));
    padding: 118px 0 0;
    color: #fff;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

.hero__slider {
    position: relative;
    min-height: 360px;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 280ms ease, transform 280ms ease;
}

.hero__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero h1,
.section h2,
.callout h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(3.3rem, 6.6vw, 5.9rem);
    font-weight: 800;
}

.hero p {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(0,0,0,0.28);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.hero__arrow:hover {
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.7);
}
.hero__arrow svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

.hero__dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero__dot.is-active {
    width: 36px;
    background: var(--accent);
}

.hero__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__portrait {
    position: absolute;
    inset: 0;
    background:
        var(--hero-image),
        radial-gradient(circle at 75% 28%, rgba(255, 255, 255, 0.04), transparent 18%);
    background-size: cover, auto;
    background-position: center center, 0 0;
    background-repeat: no-repeat;
}

.section {
    padding: 86px 0;
}

.section--offset {
    margin-top: -8px;
}

.section--tight {
    padding-top: 72px;
}

.section--accent {
    background: linear-gradient(135deg, rgba(25, 48, 105, 0.98), rgba(36, 63, 135, 0.94));
    color: #fff;
}

.section--muted {
    background: #f4f6fb;
}

/* Accreditation layout */
.accreditation-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .accreditation-layout { grid-template-columns: 1fr; }
}
.accreditation-details__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(36, 63, 135, 0.08);
    font-size: 1.35rem;
}
.accreditation-details__label { color: var(--muted); }
.accreditation-details__value { font-weight: 600; color: var(--ink); text-align: right; }
.accreditation-details .text-link { margin-top: 16px; display: inline-block; }
.accreditation-scopes .eyebrow { margin-bottom: 16px; }
.scope-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.35rem;
}
.scope-table th {
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 2px solid rgba(36, 63, 135, 0.12);
}
.scope-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(36, 63, 135, 0.07);
    color: var(--ink);
}
.scope-table td:first-child { font-weight: 600; }

.card {
    padding: 28px;
    border: 1px solid rgba(36, 63, 135, 0.08);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.overview-grid,
.audiences-layout,
.cert-and-cta,
.stats-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

/* ── Page hero (interior pages) ─────────────────────────────────────────── */
.page-hero {
    background: var(--brand);
    color: #fff;
    padding: 56px 0 48px;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.5rem; max-width: 560px; }
.contact-region-note {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.92);
}

/* ── Contact section ────────────────────────────────────────────────────── */
.section--contact {
    background: #f4f6fb;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}

.contact-info .eyebrow { margin-bottom: 8px; }
.contact-info h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.3;
}
.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.4rem;
}
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details__label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.contact-details a { color: var(--brand); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-details strong { color: var(--ink); }

.contact-form {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(36,63,135,0.07);
}

.contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}
.contact-form__row label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}
.contact-form__row input,
.contact-form__row select,
.contact-form__row textarea {
    border: 1.5px solid rgba(36,63,135,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1.4rem;
    font-family: inherit;
    color: var(--ink);
    background: #f8f9fc;
    transition: border-color 0.15s;
    outline: none;
}
.contact-form__row input:focus,
.contact-form__row select:focus,
.contact-form__row textarea:focus {
    border-color: var(--brand);
    background: #fff;
}
.contact-form__row textarea { resize: vertical; min-height: 100px; }

.contact-form__submit { width: 100%; justify-content: center; margin-top: 4px; }
.contact-form__submit:disabled { opacity: 0.65; cursor: not-allowed; }

.contact-form__feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1.3rem;
    background: rgba(16,196,105,0.1);
    color: #0a7a40;
    text-align: center;
}
.contact-form__feedback--error {
    background: rgba(220,53,69,0.08);
    color: #b02030;
}
.contact-form__feedback[hidden] { display: none; }

.overview-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
}

.verify-card {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.verify-card h3,
.feature-card h3,
.cert-card h3,
.verify-inline h3,
.site-footer h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.overview-copy h2,
.section__heading h2,
.callout h2 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.lead,
.section__heading p,
.feature-card p,
.cert-card p,
.verify-card p,
.verify-inline p,
.stat-card span,
.footer-copy,
.site-footer {
    color: var(--muted);
    line-height: 1.72;
}

.lead--secondary {
    margin-top: 14px;
}

.audiences-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.feature-card,
.cert-card,
.stat-card,
.verify-inline {
    min-height: 100%;
    background: rgba(255, 255, 255, 0.98);
}

.feature-card__icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(16, 196, 105, 0.12);
    color: var(--accent-dark);
    font-weight: 800;
}

.section__heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.cert-layout .section__heading {
    margin-bottom: 24px;
}

.cert-and-cta {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.cert-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cert-card__tag {
    margin: 0;
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.cert-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #eef2f7;
    color: #1a365d;
    border: 1px solid #cbd5e0;
}

.cert-card__badge--anab {
    background: #e6f0ff;
    color: #0b3a82;
    border-color: #b3ceff;
}

.cert-card__badge--onac {
    background: #fff4e5;
    color: #a04500;
    border-color: #ffd19a;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.callout p,
.section--accent .eyebrow,
.section--accent h2 {
    color: rgba(255, 255, 255, 0.86);
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    color: var(--ink);
}

.site-footer {
    padding: 34px 0 22px;
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.74);
}

.brand--footer .brand__mark {
    background: linear-gradient(135deg, #f2f6ff, #cdd8f2);
    color: var(--brand);
}

.brand--footer strong,
.brand--footer small,
.site-footer h3,
.site-footer a,
.site-footer span,
.footer-bottom p {
    color: #fff;
}

.footer-grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    align-items: start;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 12px;
}

.footer-bottom {
    padding-top: 26px;
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Chat Widget ── */
.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    font-family: 'Manrope', sans-serif;
}

/* Launcher button */
.chat-launcher {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 13px 22px 13px 16px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 24px rgba(36, 63, 135, 0.38);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.chat-launcher:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(36, 63, 135, 0.48);
}
.chat-launcher svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0;
}
.chat-launcher .chat-icon-close { display: none; }
.chat-launcher[aria-expanded="true"] .chat-icon-open  { display: none; }
.chat-launcher[aria-expanded="true"] .chat-icon-close { display: block; }
.chat-launcher[aria-expanded="true"] { border-radius: 50%; padding: 13px; }
.chat-launcher[aria-expanded="true"] .chat-launcher-label { display: none; }

/* Chat box */
.chat-box[hidden] { display: none !important; }
.chat-box {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 340px;
    max-height: min(520px, calc(100dvh - 110px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(21, 49, 109, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.22s ease;
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.chat-header {
    background: var(--brand);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.chat-header strong { display: block; font-size: 0.9rem; }
.chat-header small  { font-size: 0.72rem; opacity: 0.8; }

.chat-wa-link {
    display: flex;
    align-items: center;
    background: #25d366;
    border-radius: 50%;
    padding: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-wa-link:hover { background: #1ebe5d; }
.chat-wa-link svg { width: 20px; height: 20px; fill: #fff; display: block; }

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.chat-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-close-btn:hover { background: rgba(255,255,255,0.28); }
.chat-close-btn svg { width: 18px; height: 18px; fill: #fff; display: block; }

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    max-height: 320px;
    scroll-behavior: smooth;
}
.chat-msg {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg--user {
    background: var(--brand);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg--bot {
    background: #f0f3fa;
    color: var(--ink);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-msg--typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 14px;
}
.chat-msg--typing span {
    width: 7px;
    height: 7px;
    background: var(--muted);
    border-radius: 50%;
    animation: typingDot 1.2s infinite ease-in-out both;
}
.chat-msg--typing span:nth-child(1) { animation-delay: 0s; }
.chat-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* Input form */
.chat-form {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.chat-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
    background: #f7f9fd;
}
.chat-input:focus { border-color: var(--brand); }
.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.chat-send:hover { background: var(--brand-dark); }
.chat-send svg { width: 18px; height: 18px; fill: #fff; }

@media (max-width: 600px) {
    .chat-widget { bottom: 16px; right: 16px; }
    .chat-box    { width: calc(100vw - 32px); right: 0; }
}

@media (max-width: 1080px) {
    .top-bar,
    .header-info,
    .audiences-layout,
    .overview-grid,
    .cert-and-cta,
    .stats-grid,
    .footer-grid,
    .hero__grid,
    .feature-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .top-bar,
    .header-info {
        align-items: flex-start;
    }

    .nav-bar {
        grid-template-columns: 1fr;
    }

    .nav {
        overflow-x: auto;
    }

    .verify-card {
        margin-top: -56px;
    }

    .hero__content {
        width: min(520px, calc(100% - 48px));
        left: 0;
        bottom: 44px;
        padding-top: 88px;
    }
}

@media (max-width: 720px) {
    .top-bar {
        min-height: auto;
        padding: 24px 0;
    }

    .header-info {
        width: 100%;
    }

    .nav a,
    .nav__toggle {
        padding: 0 18px;
        white-space: nowrap;
    }

    .button--small {
        min-height: 48px;
        width: 100%;
    }

    .hero__content {
        width: calc(100% - 32px);
        left: 0;
        bottom: 28px;
        padding-top: 82px;
    }

    .hero__slider {
        min-height: 420px;
    }

    .hero h1 {
        max-width: 8ch;
        font-size: clamp(3rem, 10vw, 4.5rem);
    }

    .hero p {
        max-width: 28ch;
    }

    .hero__actions,
    .callout {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 22px;
    }

    .section {
        padding: 72px 0;
    }
}

/* Handbook pages */
.handbook-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.handbook-body {
    padding: 40px;
}
.handbook-body h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.35rem;
    color: var(--ink);
}
.handbook-body h2:first-of-type { margin-top: 0; }
.handbook-body p,
.handbook-body ul,
.handbook-body ol {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 14px;
}
.handbook-body ul,
.handbook-body ol {
    padding-left: 22px;
}
.handbook-body li { margin-bottom: 6px; }
.handbook-body li::marker { color: var(--brand); }
.handbook-side {
    padding: 28px;
    position: sticky;
    top: 110px;
}
.handbook-side .button {
    display: block;
    text-align: center;
    margin: 20px 0 12px;
}
.handbook-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0 0;
}
.handbook-facts dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
}
.handbook-facts dd {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 600;
}
.handbook-body h3 {
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 700;
}
.handbook-body strong { color: var(--ink); }
.handbook-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 22px;
    padding: 10px 14px;
    border-left: 3px solid var(--brand);
    background: rgba(0, 123, 255, 0.04);
}
.handbook-meta span { white-space: nowrap; }
.handbook-toc {
    background: #f6f8fb;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 18px 22px 10px;
    margin: 0 0 24px;
}
.handbook-toc p.eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.handbook-toc ol {
    columns: 2;
    column-gap: 28px;
    padding-left: 20px;
    margin: 0;
}
.handbook-toc li {
    font-size: 0.88rem;
    margin-bottom: 4px;
    break-inside: avoid;
}
.handbook-toc a { color: var(--ink); text-decoration: none; }
.handbook-toc a:hover { color: var(--brand); text-decoration: underline; }
.handbook-callout {
    border: 1px solid #d9e2ec;
    border-left: 4px solid var(--brand);
    background: #f6f8fb;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 20px 0;
}
.handbook-callout p:last-child { margin-bottom: 0; }
.handbook-callout h3 { margin-top: 0; }
.handbook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 0.9rem;
}
.handbook-table th,
.handbook-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e3e8ef;
    vertical-align: top;
    color: var(--muted);
}
.handbook-table th {
    background: #f6f8fb;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.handbook-table td strong { color: var(--ink); }
@media (max-width: 640px) {
    .handbook-toc ol { columns: 1; }
    .handbook-table { font-size: 0.82rem; }
    .handbook-table th, .handbook-table td { padding: 8px 9px; }
}
@media (max-width: 900px) {
    .handbook-layout { grid-template-columns: 1fr; }
    .handbook-side { position: static; }
    .handbook-body { padding: 28px; }
}
