/* Other work - shared website sections and footer.
   Used by the home page and every public page (pricing, demo, terms).
   Sizes are written in --px: one --px is one real screen pixel, whatever
   --ow-page-scale (the desktop zoom) the page uses. */

:root {
    --px: calc(1px / var(--ow-page-scale, 1));
}

.tm-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Sections */
.tm-mk {
    font-size: calc(16 * var(--px));
}

.tm-mk-section {
    padding: calc(64 * var(--px)) calc(20 * var(--px));
}

.tm-mk-section-alt {
    background: #ffffff;
    border-top: 1px solid rgba(34,92,162,0.10);
    border-bottom: 1px solid rgba(34,92,162,0.10);
}

.tm-mk-wrap {
    max-width: calc(1180 * var(--px));
    margin: 0 auto;
}

.tm-mk-wrap-narrow {
    max-width: calc(820 * var(--px));
}

.tm-mk-eyebrow {
    margin: 0 0 calc(8 * var(--px));
    color: var(--ow-primary-dark);
    font-size: calc(13 * var(--px));
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-mk-section .tm-mk-eyebrow,
.tm-mk-title,
.tm-mk-lead {
    text-align: center;
}

.tm-mk-title {
    max-width: calc(760 * var(--px));
    margin: 0 auto calc(14 * var(--px));
    color: var(--ow-navy);
    font-size: calc(30 * var(--px));
    font-weight: 900;
    line-height: 1.2;
    text-wrap: balance;
}

.tm-mk-lead {
    max-width: calc(720 * var(--px));
    margin: 0 auto;
    color: var(--ow-muted);
    font-size: calc(17 * var(--px));
    line-height: 1.6;
}

/* Room for the pricing intro to end on its second line ("Prices exclude VAT."). */
.tm-mk-lead-wide {
    max-width: calc(800 * var(--px));
}

/* Who it is for */
.tm-mk-audience {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(20 * var(--px));
    margin-top: calc(36 * var(--px));
}

.tm-mk-card {
    background: #ffffff;
    border: 1px solid rgba(34,92,162,0.12);
    border-radius: calc(12 * var(--px));
    padding: calc(26 * var(--px));
    box-shadow: 0 12px 28px rgba(10,42,82,0.06);
}

    .tm-mk-card h3 {
        margin: calc(16 * var(--px)) 0 calc(8 * var(--px));
        color: var(--ow-navy);
        font-size: calc(19 * var(--px));
        font-weight: 900;
    }

    .tm-mk-card p {
        margin: 0;
        color: #31425a;
        font-size: calc(15 * var(--px));
        line-height: 1.6;
    }

.tm-mk-card-icon,
.tm-mk-benefit-icon {
    width: calc(48 * var(--px));
    height: calc(48 * var(--px));
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(12 * var(--px));
    background: #e8f0fc;
    color: var(--ow-primary-dark);
}

    .tm-mk-card-icon svg,
    .tm-mk-benefit-icon svg {
        width: calc(26 * var(--px));
        height: calc(26 * var(--px));
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Audience cards use the same round pictures as "Everything you need in one system",
   at the same size: plain px (no --px), so the page scale shrinks both alike. */
.tm-mk-card-icon.is-picture {
    width: 88px;
    height: 88px;
    border-radius: 0;
    background: none;
}

    .tm-mk-card-icon.is-picture img {
        width: 100%;
        height: 100%;
        display: block;
    }

/* How it works */
.tm-mk-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(28 * var(--px));
    margin: calc(36 * var(--px)) 0 0;
    padding: 0;
    counter-reset: none;
}

.tm-mk-step {
    position: relative;
    text-align: center;
    padding: 0 calc(8 * var(--px));
}

    .tm-mk-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: calc(24 * var(--px));
        left: calc(50% + 36 * var(--px));
        right: calc(-50% + 36 * var(--px) + 28 * var(--px));
        border-top: 2px dashed #b9c9e4;
    }

    .tm-mk-step h3 {
        margin: calc(16 * var(--px)) 0 calc(8 * var(--px));
        color: var(--ow-navy);
        font-size: calc(18 * var(--px));
        font-weight: 900;
    }

    .tm-mk-step p {
        max-width: calc(320 * var(--px));
        margin: 0 auto;
        color: #31425a;
        font-size: calc(15 * var(--px));
        line-height: 1.6;
    }

.tm-mk-step-num {
    width: calc(48 * var(--px));
    height: calc(48 * var(--px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Same yellow as the hero's Create account button. */
    border: 1px solid #c9a800;
    background: linear-gradient(180deg, #fde88a 0%, #fcdb6c 50%, #f5c830 100%);
    color: #3a2800;
    font-size: calc(20 * var(--px));
    font-weight: 900;
}

/* Why */
.tm-mk-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(18 * var(--px));
    margin-top: calc(36 * var(--px));
}

.tm-mk-benefit {
    display: flex;
    gap: calc(18 * var(--px));
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(34,92,162,0.12);
    border-radius: calc(12 * var(--px));
    padding: calc(24 * var(--px));
}

    .tm-mk-benefit h3 {
        margin: calc(2 * var(--px)) 0 calc(6 * var(--px));
        color: var(--ow-navy);
        font-size: calc(18 * var(--px));
        font-weight: 900;
    }

    .tm-mk-benefit p {
        margin: 0;
        color: #31425a;
        font-size: calc(15 * var(--px));
        line-height: 1.6;
    }

/* FAQ */
.tm-mk-faq {
    margin-top: calc(30 * var(--px));
    border-top: 1px solid rgba(34,92,162,0.16);
}

    .tm-mk-faq details {
        border-bottom: 1px solid rgba(34,92,162,0.16);
    }

    .tm-mk-faq summary {
        position: relative;
        list-style: none;
        cursor: pointer;
        padding: calc(18 * var(--px)) calc(40 * var(--px)) calc(18 * var(--px)) 0;
        color: var(--ow-navy);
        font-size: calc(17 * var(--px));
        font-weight: 800;
    }

        .tm-mk-faq summary::-webkit-details-marker {
            display: none;
        }

        .tm-mk-faq summary::after {
            content: "+";
            position: absolute;
            right: calc(6 * var(--px));
            top: 50%;
            transform: translateY(-50%);
            color: var(--ow-primary-dark);
            font-size: calc(24 * var(--px));
            font-weight: 400;
        }

    .tm-mk-faq details[open] summary::after {
        content: "\2212";
    }

    .tm-mk-faq p {
        margin: 0 0 calc(18 * var(--px));
        color: #31425a;
        font-size: calc(15 * var(--px));
        line-height: 1.65;
    }

    .tm-mk-faq a,
    .tm-mk-faq-more a {
        color: var(--ow-primary-dark);
        font-weight: 700;
    }

.tm-mk-faq-more {
    margin: calc(24 * var(--px)) 0 0;
    text-align: center;
    color: var(--ow-muted);
    font-size: calc(15 * var(--px));
}

/* Final call to action */
.tm-mk-cta {
    padding: calc(56 * var(--px)) calc(20 * var(--px));
    background: linear-gradient(90deg, #0f477f 0%, #0b3568 100%);
    color: #ffffff;
    text-align: center;
}

    .tm-mk-cta h2 {
        margin: 0 0 calc(10 * var(--px));
        font-size: calc(30 * var(--px));
        font-weight: 900;
        line-height: 1.2;
    }

    .tm-mk-cta p {
        margin: 0 auto;
        max-width: calc(620 * var(--px));
        color: rgba(255,255,255,0.84);
        font-size: calc(17 * var(--px));
        line-height: 1.55;
    }

.tm-mk-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(12 * var(--px));
    margin-top: calc(26 * var(--px));
}

    .tm-mk-cta-buttons .tm-btn-primary,
    .tm-mk-btn-ghost {
        width: auto;
        min-width: calc(180 * var(--px));
        min-height: calc(46 * var(--px));
        padding: 0 calc(24 * var(--px));
        font-size: calc(15 * var(--px));
    }

.tm-mk-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 5px;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    font-weight: 800;
    text-decoration: none;
}

    .tm-mk-btn-ghost:hover {
        background: rgba(255,255,255,0.14);
    }

/* Footer */
.tm-footer {
    padding: 0;
    text-align: left;
    font-size: calc(14 * var(--px));
    color: #50607a;
    background: #ffffff;
    border-top: 1px solid rgba(34,92,162,0.10);
}

.tm-footer-inner {
    max-width: calc(1180 * var(--px));
    margin: 0 auto;
    padding: calc(44 * var(--px)) calc(20 * var(--px)) calc(30 * var(--px));
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: calc(32 * var(--px));
}

.tm-footer-brand img {
    display: block;
    width: calc(190 * var(--px));
    height: auto;
}

.tm-footer-brand p {
    max-width: calc(300 * var(--px));
    margin: calc(14 * var(--px)) 0 0;
    line-height: 1.55;
}

.tm-footer-col {
    display: flex;
    flex-direction: column;
    gap: calc(10 * var(--px));
}

    .tm-footer-col h3 {
        margin: 0 0 calc(4 * var(--px));
        color: var(--ow-navy);
        font-size: calc(14 * var(--px));
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .tm-footer-col a {
        color: #31425a;
        text-decoration: none;
    }

        .tm-footer-col a:hover {
            color: var(--ow-primary-dark);
            text-decoration: underline;
        }

.tm-footer-bottom {
    max-width: calc(1180 * var(--px));
    margin: 0 auto;
    padding: calc(18 * var(--px)) calc(20 * var(--px)) calc(26 * var(--px));
    border-top: 1px solid rgba(34,92,162,0.10);
    font-size: calc(13 * var(--px));
    color: #61708a;
    text-align: center;
}


@media (max-width: 1180px) {
    .tm-mk-audience {
        grid-template-columns: 1fr;
        max-width: calc(640 * var(--px));
        margin-left: auto;
        margin-right: auto;
    }

    .tm-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .tm-mk-section {
        padding: calc(44 * var(--px)) calc(16 * var(--px));
    }

    .tm-mk-title,
    .tm-mk-cta h2 {
        font-size: calc(24 * var(--px));
    }

    .tm-mk-lead {
        font-size: calc(16 * var(--px));
    }

    .tm-mk-steps,
    .tm-mk-benefits {
        grid-template-columns: 1fr;
    }

    .tm-mk-step:not(:last-child)::after {
        display: none;
    }

    .tm-mk-benefit {
        padding: calc(18 * var(--px));
    }

    .tm-footer-inner {
        grid-template-columns: 1fr;
        gap: calc(24 * var(--px));
    }
}
