@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('../fonts/roboto/Roboto-Variable.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/material-icons/MaterialIcons-Regular.ttf') format('truetype');
}

:root {
    color-scheme: light;
    /* Light-theme values from BA.WebApp/styles.scss and its Azure Material theme. */
    --color-primary: #005cbb;
    --color-on-primary: #ffffff;
    --color-accent: #ffb545;
    --color-text: #1a1b1f;
    --color-text-muted: #44474e;
    --color-background: #f5f5f5;
    --color-card: #ffffff;
    --color-surface: #faf9fd;
    --color-surface-low: #f4f3f6;
    --color-border: #dddddd;
    --color-subtle-border: #eeeeee;
    --color-nav-active: rgba(0, 0, 0, 0.08);
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-section: clamp(32px, 4vw, 56px);
    --header-height: 64px;
    --sidebar-width: 250px;
    --content-width: 1120px;
    --radius: 16px;
    --radius-small: 12px;
    --radius-button: 9999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
    text-underline-offset: 0.25em;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 600;
    text-wrap: balance;
}

h1 {
    font-size: clamp(32px, 3.5vw, 52px);
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(26px, 2.5vw, 34px);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 20px;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

main {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-card);
    scroll-margin-top: calc(var(--header-height) + var(--space-2));
}

.container {
    width: min(var(--content-width), calc(100% - 48px));
    margin-inline: auto;
}

.section-space {
    padding-block: var(--space-section);
}

.skip-link {
    position: fixed;
    z-index: 40;
    top: -128px;
    left: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-small);
    background: var(--color-card);
    color: var(--color-primary);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header-height);
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    padding-inline: var(--space-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.site-header .brand {
    min-width: 0;
    gap: 0;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 28px;
}

.site-header .brand img {
    flex-shrink: 0;
    margin: 0 12px;
}

.site-header .brand > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header :focus-visible {
    outline-color: var(--color-on-primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.006rem;
    line-height: 1.4;
    text-decoration: none;
}

.button-primary {
    color: var(--color-on-primary);
    background: var(--color-primary);
}

.button-primary:hover {
    background: color-mix(in srgb, var(--color-on-primary) 8%, var(--color-primary));
}

.button-login {
    margin-left: auto;
    flex-shrink: 0;
    gap: 0;
    min-height: 40px;
    padding-block: 0;
    color: var(--color-on-primary);
    white-space: nowrap;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

.button-login .material-icons {
    width: 18px;
    height: 18px;
    margin-left: -8px;
    margin-right: 8px;
    font-size: 18px;
}

.auth-text {
    margin-left: 6px;
}

.icon-button {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-button);
    cursor: pointer;
}

.icon-button:hover {
    background: rgb(255 255 255 / 8%);
}

.desktop-menu-toggle input {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 48px;
    height: 48px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.desktop-menu-toggle:has(input:focus-visible) {
    outline: 3px solid var(--color-on-primary);
    outline-offset: 2px;
}

.site-header:has(.desktop-menu-toggle input:checked) + .site-shell {
    grid-template-columns: 72px minmax(0, 1fr);
}

.site-header:has(.desktop-menu-toggle input:checked) + .site-shell .site-sidebar .navigation-label {
    display: none;
}

.site-header:has(.desktop-menu-toggle input:checked) + .site-shell .site-sidebar .sidebar-link {
    justify-content: center;
    padding-inline: 0;
}

.site-header:has(.desktop-menu-toggle input:checked) + .site-shell .site-sidebar .material-icons {
    margin-inline: 0;
}

.button-login:hover {
    background: rgb(255 255 255 / 8%);
}

.site-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: start;
    min-height: calc(100dvh - var(--header-height));
}

.site-sidebar {
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding-block: var(--space-1);
    border-right: 1px solid var(--color-border);
    background: var(--color-surface);
}

.navigation-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 9999px;
    color: var(--color-text);
    font-size: 16px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: 0.031rem;
    line-height: 1.5;
    text-decoration: none;
}

.sidebar-link:hover {
    color: var(--color-text);
}

.sidebar-link::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    background: var(--color-text);
    opacity: 0;
    pointer-events: none;
}

.sidebar-link:hover::before {
    opacity: 0.08;
}

.sidebar-link:focus-visible::before {
    opacity: 0.12;
}

.sidebar-link > span {
    position: relative;
}

.sidebar-link .material-icons {
    margin-inline: 16px;
    color: var(--color-text-muted);
}

.sidebar-link:hover .material-icons {
    color: var(--color-text);
}

.navigation-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link.active {
    background: var(--color-nav-active);
}

.sidebar-link:focus-visible {
    outline-offset: -3px;
}

.page-content {
    min-width: 0;
    width: 100%;
    max-width: calc(var(--content-width) + 80px);
    margin-inline: auto;
    padding: var(--space-2);
}

.mobile-navigation {
    display: none;
}

.hero {
    padding-block: var(--space-section);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: var(--space-4);
}

.brand-tagline,
.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.4;
}

.brand-tagline {
    font-size: clamp(20px, 1.5vw, 22px);
}

.eyebrow {
    font-size: 18px;
}

.accent-line {
    flex-shrink: 0;
    width: 24px;
    height: 3px;
    background: var(--color-primary);
}

.accent-text {
    color: var(--color-primary);
}

.hero-description {
    margin-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.hero-description + .hero-description {
    margin-top: var(--space-2);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 44px;
    padding-block: var(--space-1);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
}

.text-link:hover {
    text-decoration-thickness: 2px;
}

/* Text links in prose follow the surrounding text rather than action-link sizing. */
:where(p, li) a.text-link:not(.button, .icon-button) {
    display: inline;
    min-height: 0;
    padding: 0;
    font: inherit;
    vertical-align: baseline;
}

.product-preview {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-card);
}

.preview-topline,
.preview-bottomline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-1);
    padding: 12px 16px;
    font-size: 12px;
}

.preview-topline {
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 500;
}

.preview-label {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgb(255 255 255 / 8%);
    font-weight: 400;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: var(--space-3) var(--space-2) 0;
    background: var(--color-surface-low);
    text-align: center;
}

.preview-content img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-3);
}

.preview-title {
    margin-bottom: var(--space-1);
    font-size: 24px;
    font-weight: 500;
}

.preview-content p:not(.preview-title),
.preview-caption {
    color: var(--color-text-muted);
    font-size: 14px;
}

.preview-caption {
    padding: 0 var(--space-2) var(--space-3);
    background: var(--color-surface-low);
    text-align: center;
}

.preview-divider {
    width: 32px;
    height: 1px;
    margin-block: var(--space-3);
    background: var(--color-border);
}

.preview-bottomline {
    justify-content: center;
    border-top: 1px solid var(--color-subtle-border);
    color: var(--color-text-muted);
}

.features {
    border-top: 1px solid var(--color-subtle-border);
}

.section-heading {
    margin-bottom: var(--space-4);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.section-introduction {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
}

.feature-icon {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

@media (min-width: 1200px) {
    .feature-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature {
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.feature-number {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.feature h3 {
    margin-bottom: var(--space-2);
}

.feature p {
    color: var(--color-text-muted);
    font-size: 15px;
}

.capability-details {
    margin: var(--space-2) 0 0;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.capability-details li + li {
    margin-top: var(--space-1);
}

.positioning {
    background: var(--color-surface-low);
    border-block: 1px solid var(--color-subtle-border);
}

.positioning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: center;
}

.positioning-copy p {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-inner img {
    margin-bottom: var(--space-2);
}

.cta-inner p {
    max-width: 544px;
    margin-block: var(--space-2) var(--space-3);
    color: var(--color-text-muted);
}

.site-footer {
    padding-block: var(--space-4) var(--space-2);
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.footer-brand p {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-navigation,
.legal-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 14px;
}

.footer-navigation a,
.legal-navigation a {
    min-height: 44px;
    padding-block: 10px;
}

.footer-bottom {
    align-items: center;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.footer-bottom small,
.legal-navigation {
    font-size: 13px;
}

.footer-legal {
    margin-top: var(--space-1);
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-legal p + p {
    margin-top: var(--space-1);
}

.pricing-intro .hero-description,
.pricing-model-heading {
    max-width: none;
}

.pricing-notice {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-low);
}

.pricing-notice p {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
}

.contact-intro .hero-description {
    max-width: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    padding-bottom: var(--space-section);
}

.contact-card {
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-card);
}

.contact-methods {
    margin-top: var(--space-3);
}

.contact-method {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--space-2);
    padding-block: var(--space-2);
}

.contact-method + .contact-method {
    border-top: 1px solid var(--color-subtle-border);
}

.contact-icon {
    margin-top: 2px;
    color: var(--color-primary);
}

.contact-label,
.contact-company-details dt {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 600;
}

.contact-action {
    max-width: 100%;
    font: inherit;
    font-weight: 500;
    overflow-wrap: anywhere;
}

button.contact-action {
    padding-inline: 0;
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    cursor: pointer;
}

.contact-company-name {
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    font-weight: 600;
}

.contact-note {
    color: var(--color-text-muted);
    font-size: 14px;
}

.contact-card .contact-note + .contact-note {
    margin-top: var(--space-2);
}

.contact-company-details {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
}

.contact-company-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-company-details address {
    font-style: normal;
}

.contact-map-link {
    margin-top: var(--space-1);
}

.legal-content {
    display: grid;
    gap: var(--space-4);
    padding-bottom: var(--space-section);
    overflow-wrap: anywhere;
}

.legal-section + .legal-section {
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.legal-section h2 {
    margin-bottom: var(--space-3);
}

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

.legal-section p + p,
.legal-section address,
.legal-section address + p,
.legal-topic p {
    margin-top: var(--space-2);
}

.legal-section address {
    font-style: normal;
}

.legal-topic + .legal-topic {
    margin-top: var(--space-3);
}

.legal-section ul {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-3);
}

.legal-section li + li {
    margin-top: var(--space-1);
}

.utility-page {
    padding-block: var(--space-section);
    min-height: 55vh;
}

.utility-page p:not(.eyebrow) {
    margin-block: var(--space-3);
    color: var(--color-text-muted);
}

@media (max-width: 1199px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .hero-copy,
    .product-preview {
        width: 100%;
        max-width: 608px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .positioning-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .site-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header:has(.desktop-menu-toggle input:checked) + .site-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-sidebar {
        display: none;
    }

    .desktop-menu-toggle {
        display: none;
    }

    .mobile-navigation {
        display: block;
    }

    .mobile-navigation summary {
        padding: 8px;
        list-style: none;
    }

    .mobile-navigation summary::after {
        position: absolute;
        inset: -4px;
        content: "";
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: min(280px, calc(100% - 32px));
        max-height: calc(100dvh - var(--header-height) - 16px);
        overflow-y: auto;
        padding-block: var(--space-1);
        border: 1px solid var(--color-border);
        border-radius: 0 0 var(--radius-small) 0;
        background: var(--color-surface);
        box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
    }

    .mobile-navigation .sidebar-link:focus-visible {
        outline-color: var(--color-primary);
    }
}

@media (max-width: 559px) {
    .contact-card {
        padding: var(--space-3);
    }

    .page-content {
        padding: var(--space-1);
    }

    .container {
        width: calc(100% - 32px);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-1);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-1);
    }
}

@media print {
    body:has(.terms-page) {
        background: #ffffff;
        color: #000000;
    }

    body:has(.terms-page) .site-header,
    body:has(.terms-page) .site-sidebar,
    body:has(.terms-page) .site-footer,
    body:has(.terms-page) .skip-link,
    .terms-print-help {
        display: none;
    }

    body:has(.terms-page) .site-shell {
        display: block;
        min-height: 0;
    }

    body:has(.terms-page) .page-content {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body:has(.terms-page) main {
        border: 0;
        border-radius: 0;
        background: #ffffff;
    }

    .terms-page {
        font-size: 11pt;
        line-height: 1.45;
    }

    .terms-page .container {
        width: 100%;
        margin: 0;
    }

    .terms-page .hero {
        padding-block: 0 8mm;
    }

    .terms-page .hero-description,
    .terms-page .legal-section p,
    .terms-page .legal-section li {
        color: #000000;
        font-size: inherit;
        line-height: inherit;
    }

    .terms-page .legal-content {
        display: block;
        padding: 0;
    }

    .terms-page .legal-section + .legal-section {
        margin-top: 5mm;
        padding-top: 5mm;
    }

    .terms-page h1,
    .terms-page h2,
    .terms-page h3 {
        break-after: avoid;
        break-inside: avoid;
    }

    .terms-page p,
    .terms-page li {
        orphans: 3;
        widows: 3;
    }

    .terms-page li {
        break-inside: avoid;
    }

    .terms-page .text-link {
        display: inline;
        min-height: 0;
        padding: 0;
        color: inherit;
        font: inherit;
    }
}

@media (forced-colors: active) {
    :focus-visible,
    .site-header :focus-visible,
    .desktop-menu-toggle:has(input:focus-visible),
    .mobile-navigation .sidebar-link:focus-visible {
        outline-color: Highlight;
    }

    .sidebar-link.active {
        outline: 1px solid Highlight;
        outline-offset: -1px;
    }
}

@media (max-width: 768px) {
    .site-header .brand {
        font-size: 1.4rem;
    }

    .button-login {
        min-width: 64px;
    }

    .auth-text {
        display: none;
    }
}
