/*
 * BXI landing — polish layer.
 * Loaded after public/css/all.css and the inline <style> of index.html, it keeps the existing
 * look (blue #4169e1, Montserrat, isometric illustrations) and replaces the viewport-width
 * type sizes of the legacy CSS with readable, bounded ones.
 */

/* ---- Font (self-hosted, SIL Open Font License) ---------------------------- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/montserrat-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------------ */
:root {
    --blue: #4169e1;
    --blue-hover: #2f54c9;
    --blue-ink: #3852ce;
    --ink: #1a2236;
    --ink-2: #2c3e50;
    --body: #3d4855;
    --muted: #56606e;
    --line: #e6e6fa;
    --radius: 8px;
    --cta-shadow: 0 12px 28px -10px rgba(65, 105, 225, .55);
    --t-section: clamp(1.75rem, 2.5vw, 2.5rem);
    --t-body: clamp(1rem, 1.05vw, 1.0625rem);
    --t-lead: clamp(1rem, 1.2vw, 1.1875rem);
}

/* ---- Base ---------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: rgba(65, 105, 225, .2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Navigation ------------------------------------------------------------------ */
.nav-container { align-items: center; padding: 20px 4% 0; }
.nav-logo { width: auto !important; height: 88px; margin: 0; display: block; }
/* The links float over both the white page and the blue hero art: give them their own surface. */
.nav-links {
    width: auto;
    margin: 0 0 0 auto;
    gap: .25rem;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(65, 105, 225, .12);
    border-radius: 999px;
    padding: .35rem .5rem;
    box-shadow: 0 10px 30px -12px rgba(26, 34, 54, .25);
}
.nav-links div { margin: 0; }
.nav-links a, .nav-link {
    display: inline-block;
    margin: 0;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink);
    opacity: 1;
    transition: background-color .15s, color .15s;
}
.nav-links a:hover { background: #eef2fd; color: var(--blue-ink); }
.nav-vertical-ruler { display: none; }
.nav-navigation { width: auto; flex: 1; height: auto; }
.nav-buttons { min-width: 0; margin-left: .75rem; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--cta-shadow);
    transition: background-color .15s;
}
.nav-cta:hover { background: var(--blue-hover); }
.menu-toggle { cursor: pointer; padding: 8px; border-radius: 8px; }
.sidebar a.nav-link-mobile { font-size: 1.05rem; font-weight: 600; padding: .5rem 0; }
.sidebar a.nav-link-mobile.is-cta { color: var(--blue); }

/* ---- Buttons ------------------------------------------------------------------- */
.carousel-button,
.how-it-works-button,
.whitepaper-1-inner-text-button,
.get-started-button,
.footer-signup,
.footer-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 0 1.75rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.carousel-button,
.how-it-works-button,
.whitepaper-1-inner-text-button,
.get-started-button,
.footer-signup {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    box-shadow: var(--cta-shadow);
}
.carousel-button:hover,
.how-it-works-button:hover,
.whitepaper-1-inner-text-button:hover,
.get-started-button:hover,
.footer-signup:hover {
    background: var(--blue-hover);
    border-color: var(--blue-hover);
    transform: translateY(-1px);
}
.footer-login { background: #fff; color: var(--blue); border: 1px solid #d5dbf7; }
.footer-login:hover { border-color: var(--blue); }
.carousel-button, .how-it-works-button, .whitepaper-1-inner-text-button { align-self: flex-start; margin: 0; }

/* ---- Hero ----------------------------------------------------------------------- */
@media (min-width: 766px) {
    /* The background art scales with the viewport width while the copy does not:
       keep the hero compact so its button stays above the dashboard window in the art. */
    .section-container-hero { margin-top: clamp(16px, 3.5vw, 64px); }
    .carousel-text { padding-right: 48%; }
}
@media (min-width: 766px) and (max-width: 1199px) {
    .nav-logo { height: 64px; }
    .carousel-text h2 { margin-bottom: 1.1rem; }
    .hero-promise { gap: .4rem; margin-bottom: 1.4rem; }
    .hero-promise li { font-size: .9375rem; }
}
.carousel-text h1 { font-size: inherit; margin: 0 0 1.25rem; }
.carousel-text h1 strong {
    display: block;
    margin: 0;
    font-size: clamp(2.25rem, 3.7vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--blue-ink);
}
.carousel-text h2 {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    font-size: var(--t-lead);
    font-weight: 400;
    line-height: 1.6;
    color: var(--body);
}
.hero-promise { flex-direction: column; gap: .65rem; margin: 0 0 2rem; }
.hero-promise li { max-width: 30rem; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
/* The partner strip duplicated the Integrations section and landed on the background dashboard art. */
@media (min-width: 766px) {
    .section-container-hero .carousel-brand-images { display: none !important; }
}

/* ---- Section headings and lead copy -------------------------------------------- */
.section-container-suite > h2,
.section-container-features > h2,
.section-container-integrations > h2,
.section-container-faq > h2,
.section-container-partners h2,
.how-it-works-text h2,
.simple-scalable-text h2,
.methodology-1-inner-text-h2,
.whitepaper-1-inner-text-h2,
.get-started-h2,
.bk h2,
.contact-inner h2 {
    font-size: var(--t-section);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--ink);
}
.section-container-suite > p.lead,
.section-container-features > p.lead,
.section-container-integrations > p.lead {
    max-width: 40rem;
    font-size: var(--t-lead);
    line-height: 1.6;
    color: var(--muted);
}

/* ---- Story sections (centralized management, compliance, fuel, how it works) ---- */
.simple-scalable-text h2 { margin: 0 0 1rem; }
.simple-scalable-text p {
    margin: 0 0 2rem;
    font-size: var(--t-body);
    line-height: 1.7;
    color: var(--body);
    opacity: 1;
}
.methodology-1-inner-text-h2, .whitepaper-1-inner-text-h2 { margin: 0 0 1rem; }
.methodology-1-inner-text-p, .whitepaper-1-inner-text-p {
    font-size: var(--t-body);
    line-height: 1.7;
    color: var(--body);
}
.methodology-1-inner-text-p b, .whitepaper-1-inner-text-p b { color: var(--ink); font-weight: 600; }
.whitepaper-1-inner-text-button { margin-top: 1.25rem; }
.how-it-works-text { width: min(40rem, 100%); }
.how-it-works-text h2 { margin: 1rem 0 .75rem; }
.how-it-works-text p { font-size: var(--t-lead); line-height: 1.6; color: var(--body); }
.how-it-works-mobile-card {
    box-sizing: border-box;
    padding: 1.25rem 1.25rem 1.1rem;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px -14px rgba(26, 34, 54, .2);
}
.how-it-works-mobile-card p { font-size: 1.05rem; margin: 0 0 .5rem; }
.how-it-works-mobile-card span { font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* ---- Product suite ---------------------------------------------------------------- */
@media (min-width: 761px) {
    .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.suite-card {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.75rem;
    transition: box-shadow .2s, border-color .2s;
}
.suite-card:hover { border-color: #d5dbf7; box-shadow: 0 16px 40px -18px rgba(65, 105, 225, .35); }
.suite-card h3 { order: -2; margin: 0 0 .3rem; font-size: 1.35rem; letter-spacing: -.01em; }
.suite-card .suite-platform {
    order: -1;
    margin: 0 0 1rem;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}
.suite-card .suite-platform em { font-weight: 600; }
.suite-card p { color: var(--body); }
.suite-card a.learn-more { margin-top: auto; }

/* ---- Feature and integration cards ---------------------------------------------- */
.feature-card p, .integration-card .integration-text span { color: var(--muted); }
.feature-card { display: flex; flex-direction: column; }
.feature-card a.learn-more { margin-top: auto; }
.feature-card:focus-within { border-color: #c9d3f5; }
.integration-card:not(:has(img)) .integration-text { padding-left: calc(56px + 1rem); }

/* ---- FAQ ------------------------------------------------------------------------- */
.faq-item summary { padding: 1.1rem 2.25rem 1.1rem 0; color: var(--ink-2); transition: color .15s; }
.faq-item summary:hover { color: var(--blue-ink); }
.faq-item .faq-answer { color: var(--body); font-size: 1rem; line-height: 1.65; }

/* ---- Final call to action ------------------------------------------------------- */
.get-started-h2 { width: auto; max-width: 30rem; margin: 7% 1rem .75rem; line-height: 1.2; }
.get-started-span { padding: 0 1rem; font-size: var(--t-lead); line-height: 1.6; text-align: center; color: var(--muted); }
.get-started-button { margin: 2rem 0 10%; }
@media (max-width: 765px) {
    /* the lazyloaded data-bg sets an inline background that puts avatars over the heading */
    .section-container-get-started { background-image: none !important; }
    .get-started-h2 { margin-top: 2.5rem; }
    .get-started-span { width: auto; }
    .get-started-button { width: auto; margin: 1.75rem 0 3rem; }
}

/* ---- Booking calendar ------------------------------------------------------------ */
.bk-grid { gap: .6rem; }
.bk-day { gap: .35rem; }
.bk-slot { padding: .45rem 0; font-size: .875rem; min-height: 36px; }
.bk-slot:focus-visible { outline-offset: 2px; }
.bk-intro { font-size: var(--t-lead); }

/* ---- Contact and footer --------------------------------------------------------- */
.contact-row a { text-underline-offset: 3px; }
.footer-signup-container p { font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.35; margin-bottom: 1.5rem; }
.footer-buttons { gap: .75rem; flex-wrap: wrap; }
.footer-signup-container { width: auto; min-width: 17rem; max-width: 20rem; }
.footer-login, .footer-signup { white-space: nowrap; }
.footer-login, .footer-signup { margin: 0; min-height: 44px; padding: 0 1.4rem; font-size: .8125rem; }
.footer-links-container { width: auto; gap: 4rem; margin-left: 7%; }
.footer-links-container > div { min-width: 12rem; }
.footer-link-title { margin: 0 0 .9rem; font-size: .75rem; letter-spacing: .08em; color: var(--ink); }
.footer-link { margin: 0 0 .55rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.footer-link a { font-size: .875rem; color: var(--muted); opacity: 1; }
.footer-link a:hover { color: var(--blue); }
.copyright-logo { font-size: .8125rem; }
.copyright-logo img { height: 28px; }
.copyright-logo p { opacity: 1; color: var(--muted); }

/* ---- Mobile ------------------------------------------------------------------------ */
@media (max-width: 765px) {
    .nav-logo-mobile { height: 36px !important; }
    .section-container-hero { margin-left: 20px; margin-right: 20px; }
    .carousel-text h1 strong { font-size: clamp(2rem, 9vw, 2.6rem); text-align: center; }
    .carousel-text h2 { text-align: center; margin: 0 auto 1.5rem; }
    .hero-promise { align-items: flex-start; margin: 0 auto 2rem; max-width: 22rem; }
    .carousel-button { align-self: center; width: auto; padding: 0 2rem; margin: 0; font-size: .9375rem; }
    .simple-scalable-text { margin: 0; }
    .how-it-works-button, .whitepaper-1-inner-text-button { align-self: stretch; width: 100%; }
    .footer-links-container { gap: 2rem; margin-left: 0; }
    .footer-links-container > div { min-width: 0; }
    .footer-buttons { justify-content: center; }
    .footer-login, .footer-signup { flex: 1; max-width: 11rem; padding: 0 1rem; }
}
.nowrap { white-space: nowrap; }
