@charset "utf-8";

/*
    MecanoPro.io - design tokens, typography and buttons.

    ? Loaded on every page by core's page-head.php, after the theme's own style.css. Everything that
    ? is not page furniture is here; the page components built on top of these live in
    ? css/shared/site.css, which each template includes for itself.

    ? The brand red and the dark steel are the product theme's - this is the same company, and a
    ? marketing site in different colours from the software it sells reads as a different product.
*/

:root {
    --mp-red: #fb172b;
    --mp-red-dark: #d9101f;
    --mp-red-wash: #fff1f2;

    --mp-ink: #151b21;
    --mp-steel: #1f272f;
    --mp-body: #3d4954;
    --mp-muted: #66727e;

    --mp-border: #e4e8ec;
    --mp-wash: #f5f7f9;
    --mp-surface: #ffffff;

    --mp-radius: 8px;
    --mp-radius-lg: 12px;
    --mp-shadow: 0 1px 2px rgba(21, 27, 33, 0.04), 0 10px 28px -16px rgba(21, 27, 33, 0.20);
    --mp-shadow-lift: 0 2px 4px rgba(21, 27, 33, 0.05), 0 18px 40px -18px rgba(21, 27, 33, 0.28);

    --mp-max-width: 1160px;
}

/*-------------------------------------------------------------------------------------------------
    Base
-------------------------------------------------------------------------------------------------*/

body {
    background-color: var(--mp-surface);
    color: var(--mp-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mp-ink);
    font-weight: 700;
    line-height: 1.2;
}

/*  ? Long headings break badly on two words when a line wraps at the wrong place. Supported
    ? everywhere that matters and ignored elsewhere, so no fallback is needed. */
h1, h2, h3 {
    text-wrap: balance;
}

p {
    margin: 0 0 16px;
}

a {
    color: var(--mp-red);
}

a:hover,
a:focus {
    color: var(--mp-red-dark);
}

/*  Keyboard focus has to stay visible. Bootstrap 3 removes the outline on several controls and
    ? never replaces it, which leaves a keyboard user with no idea where they are on the page. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mp-red);
    outline-offset: 2px;
}

/*  Screen-reader-only text. Used on the pricing matrix, where a check mark carries the meaning and
    ? a screen reader would otherwise read an empty cell. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*  The width every section's content sits inside.
    ? Core's own .content-container is used by the shared header and footer too, so it is widened
    ? here rather than replaced. */
.content-container {
    max-width: var(--mp-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/*-------------------------------------------------------------------------------------------------
    Buttons
-------------------------------------------------------------------------------------------------*/

.btn {
    border-radius: var(--mp-radius);
    font-weight: 600;
    border-width: 1px;
    padding: 10px 20px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 16px;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--mp-red);
    border-color: var(--mp-red);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-color: var(--mp-red-dark);
    border-color: var(--mp-red-dark);
    color: #ffffff;
}

/*  The quiet button beside the primary one. Not .btn-default, which Bootstrap draws as a grey slab
    ? that competes with the call to action next to it. */
.btn-ghost,
.btn-ghost:focus {
    background-color: transparent;
    border-color: var(--mp-border);
    color: var(--mp-ink);
}

.btn-ghost:hover {
    border-color: var(--mp-ink);
    color: var(--mp-ink);
    background-color: var(--mp-wash);
}

/*  For the closing band, which sits on the dark steel - a white button on a dark ground */
.btn-invert,
.btn-invert:focus {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--mp-ink);
}

.btn-invert:hover {
    background-color: #f0f2f4;
    color: var(--mp-ink);
}

/*-------------------------------------------------------------------------------------------------
    Section furniture
-------------------------------------------------------------------------------------------------*/

.section-title {
    font-size: 34px;
    margin: 0 0 14px;
}

.section-lede {
    font-size: 18px;
    color: var(--mp-muted);
    max-width: 68ch;
    margin-bottom: 32px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mp-red);
    margin-bottom: 10px;
}

.section-action {
    margin-top: 28px;
    font-weight: 600;
}

.section-action a {
    text-decoration: none;
}

.section-action i {
    font-size: 13px;
    margin-left: 4px;
}

/*  The "Growth and up" chip that says which plan a feature starts at */
.tier-badge {
    display: inline-block;
    background-color: var(--mp-red-wash);
    color: var(--mp-red-dark);
    border: 1px solid #f7c9ce;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    white-space: nowrap;
}

.tier-badge-sm {
    font-size: 11px;
    padding: 1px 8px;
    margin-left: 6px;
}

/*-------------------------------------------------------------------------------------------------
    Forms
-------------------------------------------------------------------------------------------------*/

.site-form-fieldset {
    background: none;
    border: none;
    padding: 0;
}

.site-form-alert:empty {
    display: none;
}

.site-form-alert {
    margin-bottom: 18px;
}

.site-form-footer {
    background: none;
    border: none;
    padding: 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-form-legal {
    margin: 0;
    font-size: 13px;
    color: var(--mp-muted);
}

/*-------------------------------------------------------------------------------------------------
    404 body
-------------------------------------------------------------------------------------------------*/

.not-found {
    padding: 90px 20px 110px;
    text-align: center;
}

.not-found h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .section-title {
        font-size: 28px;
    }

    .section-lede {
        font-size: 17px;
    }
}

@media (max-width: 767px) {

    body {
        font-size: 15.5px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-lede {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/*  Motion is decoration here - nothing on this site depends on it */
@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
