:root {
    --color-text: #121212;
    --color-text-muted: #555;
    --color-text-subtle: #666;
    --color-bg: #ffffff;
    --color-bg-soft: #f7f8fa;
    --color-border: #e5e7eb;
    --color-border-light: #e8ecea;
    --color-accent: #009fff;
    --color-accent-hover: #007dd6;
    --color-accent-soft: rgba(0, 159, 255, 0.07);
    --color-success: #68cc58;
    --color-navy: #0e1928;
    --color-navy-mid: #2c3c55;
    --color-on-dark: #ffffff;
    --color-on-dark-muted: rgba(255, 255, 255, 0.75);
    --font: "Poppins", sans-serif;
    --font-mono: "Poppins", sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow: 0 14px 34px rgba(34, 76, 116, .10);
    --header-height: 58px;
    --header-clear: 0px;
    --container: 1200px;
    --container-wide: 1320px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Smooth only for same-page anchor jumps (toggled by site-header.js),
   not globally — a global "smooth" fights with Blazor's own scroll-to-top
   on enhanced navigation between pages, which needs to land instantly. */
html.is-anchor-scrolling {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
    color: inherit;
}

h1, h2, h3, h4, p {
    margin: 0;
}

/* Balanced line breaks on headlines wherever the browser supports it —
   avoids the classic "one long line, then one orphan word" wrap on
   centered headings. Paragraphs get the gentler "pretty" mode instead,
   which only avoids orphans rather than reflowing every line. */
h1, h2 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

ul {
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 2000;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - 48px, var(--container-wide));
    margin-inline: auto;
}

.page-main {
    min-height: 50vh;
    padding-top: 0;
}

.home-page { --color-accent: #009fff; --color-accent-hover: #007dd6; --color-accent-soft: rgba(0,159,255,.07); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    appearance: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 15px;
}

.btn-md {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    font-weight: 500;
}

.btn-ghost:hover {
    color: var(--color-accent);
}

.btn-on-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    padding: 0;
    gap: 5px;
}

.btn-link:hover {
    gap: 10px;
}

/* Section heading */
.section-heading {
    text-align: center;
    margin-bottom: 8px;
}

.section-heading.is-left {
    text-align: left;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

.section-eyebrow .label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.section-heading.is-dark .label {
    color: #fff;
}

/* Shared green-dot marker for eyebrows that don't use the SectionHeading
   component (bespoke two-column intros like Implementation/Questions,
   the hero, and the dark product-reveal copy) so every eyebrow on the
   page reads as the same pattern: a dot, then the caption. */
.eyebrow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
    vertical-align: middle;
}

.section-heading h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    max-width: 860px;
    margin: 0 auto 12px;
}

.section-heading.is-left h2 {
    margin-left: 0;
}

.section-heading.is-dark h2 {
    color: #fff;
}

.section-heading p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text-muted);
    max-width: 760px;
    margin: 0 auto;
}

.section-heading.is-left p {
    margin-left: 0;
}

.section-heading.is-dark p {
    color: var(--color-on-dark-muted);
}

.section-block {
    padding: 72px 0;
}

@media (max-width: 768px) {
    .container,
    .container-wide {
        width: min(100% - 32px, var(--container));
    }

    .section-block {
        padding: 48px 0;
    }

    .section-heading p {
        font-size: 16px;
    }
}

/* Blazor template leftovers kept for forms / error UI */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Contact Sales form (ContactSalesFormSection) — has to live in the
   global stylesheet, not that component's scoped .razor.css: Blazor's
   CSS isolation attribute is only injected into elements a component's
   own markup renders directly, and the <input>/<select>/<textarea>
   here are rendered by the framework's InputText/InputSelect/
   InputTextArea/ValidationMessage child components, which never carry
   it. A scoped rule targeting them silently never matches, which is
   why this form has been rendering with bare, unstyled native browser
   inputs (particularly rough on mobile, where the resulting <16px
   inherited font size also triggers iOS Safari's zoom-on-focus). */
.contact-sales__form-col input,
.contact-sales__form-col select,
.contact-sales__form-col textarea {
    font: inherit;
    font-size: 16px;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--color-text);
    font-weight: 400;
    width: 100%;
}

.contact-sales__form-col input:focus,
.contact-sales__form-col select:focus,
.contact-sales__form-col textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.contact-sales__form-col textarea {
    resize: vertical;
}

.contact-sales__form-col .validation-message {
    font-size: 12.5px;
    font-weight: 500;
}

/* Help article body content (see .docs-article in HelpArticlePage.razor,
   authored in Components/Data/Help/Articles) — global for the same
   reason as the Contact Sales rules above, but with an added twist:
   article text renders through @((MarkupString)...), and any <a>,
   <code>, <pre>, or nested <ul> embedded in that raw HTML never gets a
   scope attribute at all (Blazor only scopes elements the Razor
   compiler sees directly in a component's own markup), so a rule
   scoped to HelpArticlePage.razor.css would never match them even
   though the .docs-article wrapper itself is scoped fine. */
.docs-article a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.docs-article a:hover {
    text-decoration: underline;
}

.docs-article__code {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #0d1117;
    color: #e6edf3;
    font-size: 13px;
    line-height: 1.55;
    overflow-x: auto;
}

.docs-article__code code {
    font-family: var(--font-mono, monospace);
    white-space: pre;
}

.docs-article :not(pre) > code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-family: var(--font-mono, monospace);
    font-size: .9em;
}

/* A nested <ul> inside a list item (e.g. the Finish Rounding Type
   options under Production Automation Settings) — its own top margin
   would otherwise stack on top of the parent <li>'s bottom margin. */
.docs-article li > ul {
    margin: 8px 0 0;
}

/* Long-form article layout, shared by BlogPostPage and
   ProductAnnouncementPostPage — global for the same reason as the
   Contact Sales rules above: two different page components render this
   identical markup, and a scoped .razor.css rule only ever matches the
   one component it lives in. */
.blog-post__missing {
    text-align: center;
    padding: 60px 0;
}

.blog-post__missing p {
    color: var(--color-text-muted);
    margin: 10px 0 24px;
}

.blog-post__header {
    padding: calc(var(--header-height) + 40px) 0 32px;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}

.blog-post__header-inner {
    max-width: 760px;
}

.blog-post__header h1 {
    margin: 14px 0 14px;
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.blog-post__header > .container > p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.blog-post__hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-post__hero img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.blog-post__layout {
    padding: 56px 24px 80px;
}

.blog-post__body {
    max-width: 700px;
    min-width: 0;
}

.blog-post__body h2 {
    margin: 40px 0 14px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--color-text);
}

.blog-post__body h2:first-child {
    margin-top: 0;
}

.blog-post__body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.blog-post__body ul {
    margin: 0 0 16px;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-post__body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.blog-post__cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
    text-align: center;
}

.blog-post__cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-post__cta p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.blog-post__cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-post__more {
    border-top: 1px solid var(--color-border-light);
}

.blog-post__more h2 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .blog-post__hero img {
        aspect-ratio: 4 / 3;
    }

    .blog-post__layout {
        padding: 40px 20px 60px;
    }
}
