/* Public navigation and landing-page sections. */
.public-header {
    width: calc(100% - 32px);
    max-width: 1280px;
    padding: 0;
}
.public-header .navbar-main {
    padding: 14px 20px;
    margin-top: 20px !important;
    background: var(--white);
    border-color: var(--gray-200) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(15, 40, 60, .04);
}
.public-header .navbar-main > .container { max-width: none; padding: 0; }
.public-header .navbar-brand { margin-block: 0; flex-shrink: 0; }
.public-header .navbar-logo { max-height: 38px; }
.public-header .nav-link {
    border-radius: 9px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: .9rem;
}
.public-header .nav-link:hover { background: var(--gray-100); color: var(--primary-800); }
.public-header .navbar-nav .nav-access {
    padding: 10px 18px;
    color: #fff;
    background: #087c65;
    white-space: nowrap;
}
.public-header .navbar-nav .nav-access:hover { color: #fff; background: #06634f; }
@media (min-width: 992px) {
    .public-header .navbar-nav > .nav-account-start { margin-inline-start: auto !important; margin-inline-end: 0 !important; }
}
.public-header .navbar-custom-toggler {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
}
.homepage-stats { padding-top: 24px; padding-bottom: 24px; }
.homepage-stats > h2 { text-align: center; margin-bottom: 28px; color: var(--gray-800); }
.homepage-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.homepage-stat {
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 28px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(15, 40, 60, .035);
}
.homepage-stat dt { font-size: .9rem; font-weight: 500; color: var(--gray-600); }
.homepage-stat dt .svg-inline--fa { color: var(--primary-700); margin-inline-end: 8px; }
.homepage-stat dd { margin: 16px 0 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; color: var(--gray-900); }
.homepage-cta {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #12354a;
    color: #fff;
}
.homepage-cta::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(94, 234, 212, .13);
    box-shadow: 0 0 0 48px rgba(94, 234, 212, .035), 0 0 0 96px rgba(94, 234, 212, .025);
    border-radius: 50%;
    inset-inline-end: -60px;
    top: -130px;
    pointer-events: none;
}
.homepage-cta .card-body { position: relative; padding: 44px 28px; }
.homepage-cta .row { justify-content: space-between !important; }
.homepage-cta-copy { text-align: start; }
.homepage-cta h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 14px; }
.homepage-cta p { font-size: 1rem; line-height: 1.9; font-weight: 400; color: #d5e4ed; margin: 0; }
.homepage-cta .homepage-cta-button {
    padding: 14px 26px;
    background: #fff;
    color: #12354a;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 11px;
    border: 1px solid #fff;
}
.homepage-cta .homepage-cta-button:hover { background: #dcf4eb; border-color: #dcf4eb; color: #12354a; }
.public-footer {
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--primary-500);
    border-radius: 20px;
    padding: 30px;
    background: var(--white);
}
.public-footer .footer-top {
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 22px;
}
.public-footer .footer-top > div:first-child { margin: 0 !important; }
.public-footer .footer-utilities { gap: 8px; }
.public-footer .footer-utilities > div { margin: 0 !important; }
.public-footer .footer-utilities .btn {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
}
.public-footer .footer-links-layout { padding-block: 28px; gap: 32px; }
.public-footer .footer-links-layout > div:first-child { padding-inline-end: 20px !important; }
.public-footer .footer-links-layout ul { font-size: .875rem; line-height: 2; }
.public-footer .footer-links-layout ul > li:first-child { font-size: .95rem; color: var(--gray-900); margin-bottom: 12px !important; }
.public-footer .footer-links-layout a:hover { color: var(--primary-800); }
.public-footer .footer-social-links { gap: 10px !important; }
.public-footer .footer-social-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50) !important;
}
.public-footer .footer-social-wrapper .svg-inline--fa { color: var(--gray-700) !important; }
.public-footer .footer-social-links a:hover .footer-social-wrapper { background: var(--primary-100) !important; }
.public-footer .footer-copy {
    border-top: 1px solid var(--gray-200);
    padding-top: 18px;
    text-align: start;
    line-height: 1.8;
}
@media (max-width: 991.98px) {
    .public-header .navbar-main { padding: 12px 16px; }
    .public-header .navbar-collapse { padding-top: 16px; }
    .public-header .navbar-nav { gap: 4px; }
    .public-header .navbar-nav .nav-link { padding: 10px 12px; }
    .public-header .nav-account-start { border-top: 1px solid var(--gray-200); padding-top: 10px; margin-top: 6px; }
    .public-header .nav-access { text-align: center; }
    .homepage-cta-copy { text-align: center; }
}
@media (max-width: 767.98px) {
    .homepage-feature-row > div:has(h2) { order: 0 !important; }
    .homepage-feature-row > div:has(> img) { order: 1 !important; margin-top: 24px; }
    .homepage-stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .homepage-stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; }
    .homepage-stat dd { margin: 0; font-size: 1.9rem; }
    .homepage-cta .card-body { padding: 32px 20px; }
    .homepage-cta h2 { font-size: 1.5rem; }
    .public-footer { padding: 22px; }
    .public-footer .footer-top { flex-direction: row !important; }
    .public-footer .footer-logo { max-height: 32px; height: auto; max-width: 120px; }
    .public-footer .footer-links-layout > div:first-child { padding-inline-end: 0 !important; }
}

body.site-surface[data-theme-style="light"] .index-custom-hero-background { background: linear-gradient(0deg, #fafbfc, rgba(250,251,252,0)) !important; }

/* Statistics panel with prominent values and dedicated icon tiles. */
.homepage-stats { padding-block: 32px; }
.homepage-stat { position: relative; overflow: hidden; padding: 28px; border-top: 3px solid #279b8c; }
.homepage-stat:nth-child(2) { border-top-color: #4885c5; }
.homepage-stat:nth-child(3) { border-top-color: #7b79b8; }
.homepage-stat::after { content: ''; position: absolute; width: 140px; height: 140px; border: 22px solid rgba(80,145,165,.045); border-radius: 50%; inset-inline-end: -48px; bottom: -70px; pointer-events: none; }
.homepage-stat dt { display: flex; align-items: center; gap: 12px; line-height: 1.8; }
.homepage-stat dt :is(.svg-inline--fa,i) { box-sizing: content-box; width: 20px; height: 20px; padding: 12px; margin: 0; border-radius: 13px; background: #e4f3ef; color: #218778; }
.homepage-stat:nth-child(2) dt :is(.svg-inline--fa,i) { background: #e9f1fb; color: #3979b8; }
.homepage-stat:nth-child(3) dt :is(.svg-inline--fa,i) { background: #f0eef9; color: #7566a5; }
.homepage-stat dd { position: relative; z-index: 1; margin-top: 24px; font-size: clamp(2rem,3.5vw,3rem); letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
[data-theme-style="dark"] .homepage-stat { border-inline-color: #34465a; border-bottom-color: #34465a; background: #1c2b3c; }
[data-theme-style="dark"] .homepage-stat dt { color: #b9cbd9; }
[data-theme-style="dark"] .homepage-stat dd { color: #eef5fa; }
@media (max-width: 767.98px) { .homepage-stat { padding: 20px; } .homepage-stat dd { margin: 0; font-size: 2rem; } .homepage-stat dt { gap: 10px; } }

.public-header .mobile-nav-access { margin-inline-start: auto; margin-inline-end: 10px; padding: 8px 12px; border-radius: 9px; background: #087c65; color: #fff; font-size: .8rem; white-space: nowrap; }
.notification-channels { padding-block: 0 !important; border: 1px solid var(--gray-200) !important; border-radius: 18px; }
.notification-channels > .card-body { padding: 24px; }
.notification-channels h2 { font-size: 1.4rem; }
.notification-channels .row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0; }
.notification-channels .row > div { width: auto; max-width: none; padding: 0 !important; }
.notification-channels .row > div > div { display: flex; align-items: center; gap: 10px; padding: 14px !important; border-radius: 10px; text-align: start !important; }
.notification-channels .row .h6 { margin: 0 !important; font-size: .85rem; }
.notification-channels .fa-xl { font-size: 1.2rem; }
@media (max-width: 991.98px) { .notification-channels .row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 575.98px) { .notification-channels .row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .notification-channels > .card-body { padding: 18px; } .public-header .navbar-main { padding: 12px; } .public-header .navbar-logo { max-width: 100px; } }

body.site-surface .index-header { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.5; }
body.site-surface .index-subheader { font-size: clamp(.95rem, 1.8vw, 1.15rem); line-height: 1.9; }
body.site-surface .btn { font-size: .875rem; }
body.site-surface .btn-lg { padding: 12px 22px; font-size: 1rem; min-height: 44px; }
@media (max-width: 991.98px) { body.site-surface h1:not(.index-header) { font-size: 1.85rem; line-height: 1.6; } }

.notification-channels .row { margin: 0 !important; }
.notification-channels > .card-body { padding-inline: 24px !important; }
.api-code-sample { direction: ltr !important; text-align: left !important; unicode-bidi: isolate; }
.homepage-cta { background-image: radial-gradient(ellipse at 10% 15%, rgba(48,178,162,.25), transparent 60%), linear-gradient(120deg, #12354a, #173f53); }
.homepage-cta::before { animation: cta-glow-drift 12s ease-in-out infinite alternate; }
@keyframes cta-glow-drift { to { transform: translate(25px, 15px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .homepage-cta::before { animation: none; } }
@media (min-width: 768px) and (max-width: 991.98px) {
    .public-header .navbar-custom-toggler { display: none; }
    .public-header #main_navbar { display: flex !important; flex-basis: auto; order: 2; margin-inline-start: 14px; }
    .public-header .navbar-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
    .public-header .nav-link { padding: 8px; font-size: .8rem; white-space: nowrap; }
    .public-header .mobile-nav-access { order: 3; margin-inline-end: 0; }
}

.public-header .navbar-main > .container, .public-header #main_navbar, .public-header .navbar-nav { align-items: center; }
.public-header .navbar-nav { margin-block: 0 !important; padding-block: 0 !important; }
@media (min-width: 768px) { .public-header #main_navbar { margin-top: 0 !important; padding-top: 0 !important; } }
@media (max-width: 991.98px) {
    #features > .row > div:first-child { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
    #features > .row > div:first-child > div { margin-bottom: 0 !important; }
    #features .card { height: 100%; }
    #features .card-body { padding: 16px; }
    #features .card-body .mt-3 { margin-top: 8px !important; }
    #features .index-icon-container { width: 32px; height: 32px; }
    #features .h6 { font-size: .9rem; }
    .homepage-cta .card-body { padding: 26px 22px; }
    .homepage-cta h2 { font-size: 1.4rem; }
    .homepage-cta p { font-size: .95rem; line-height: 1.9; margin-bottom: 0; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    #features > .row > div:first-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
    [data-tool-id] { flex: 0 0 50%; max-width: 50%; padding: 6px !important; }
    .homepage-cta .row { flex-wrap: nowrap; align-items: center; }
    .homepage-cta .row > div:first-child { flex: 1; text-align: start !important; }
    .homepage-cta .row > div:last-child { flex: 0 0 auto; width: auto; margin-top: 0 !important; }
}

/* Keep tool cards legible against the continuous page surface. */
body.site-surface .index-fade { display: none; }
