/**
 * Shared motion for product and service pages.
 *
 * Content is complete without JS: everything here only changes how it
 * arrives. motion.js adds .tibs-motion to <html> when IntersectionObserver
 * exists, and all hidden-until-seen states are scoped to that class.
 *
 * @package tibs
 */

/* The hidden attribute always wins (theme classes like .btn set display) */
[hidden] {
    display: none !important;
}

/* ---- Reveal on scroll ---- */
.tibs-motion [data-motion="reveal"]:not(.is-in),
.tibs-motion [data-motion="reveal"].is-entering {
    transition: transform 0.9s cubic-bezier(.2, .7, .2, 1), opacity 0.9s;
}

.tibs-motion [data-motion="reveal"]:not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
}

/* ---- Eyebrow and left-aligned section header ---- */
.tm-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--product-color, #3862F9);
}

.tm-header-left {
    text-align: left;
    max-width: 760px;
    margin: 0 0 3rem;
}

.tm-header-left .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

/* ---- Hero proof figures ---- */
.tm-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.tm-hero-proof strong {
    display: block;
    font-family: 'Acari Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ---- Lifecycle track: steps light up in order ---- */
.tm-track {
    --tm-steps: 4;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--tm-steps), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-track::before,
.tm-track::after {
    content: '';
    position: absolute;
    top: 27px;
    height: 2px;
    left: calc(50% / var(--tm-steps));
}

.tm-track::before {
    right: calc(50% / var(--tm-steps));
    background: var(--border-color, #E3E5F0);
}

/* The coloured line grows with the lit steps (--progress from 0 to 1) */
.tm-track::after {
    width: calc((100% - 100% / var(--tm-steps)) * var(--progress, 0));
    background: linear-gradient(90deg, #120899, #3862F9, #3bedcb);
    transition: width 0.9s cubic-bezier(.2, .7, .2, 1);
}

.tm-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.6rem;
    padding: 0 0.75rem;
    text-align: center;
}

.tm-step-dot {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1.5px solid var(--border-color, #E3E5F0);
    color: var(--text-muted, #6b7280);
    transition: all 0.5s;
}

.tm-step-dot svg {
    width: 22px;
    height: 22px;
}

.tm-step strong {
    font-family: 'Acari Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}

.tm-step > span:last-child {
    max-width: 26ch;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted, #6b7280);
}

/* Without the script every step is shown as done */
html:not(.tibs-motion) .tm-step-dot,
.tm-step.is-lit .tm-step-dot {
    background: #120899;
    border-color: #120899;
    color: #fff;
    box-shadow: 0 10px 24px rgba(18, 8, 153, 0.3);
}

html:not(.tibs-motion) .tm-track::after {
    width: calc(100% - 100% / var(--tm-steps));
}

.tm-step.is-now .tm-step-dot {
    background: #3862F9;
    border-color: #3862F9;
    transform: scale(1.12);
}

@media (max-width: 860px) {
    .tm-track {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    .tm-track::before,
    .tm-track::after {
        left: 27px;
        top: 28px;
        width: 2px;
        height: auto;
    }
    .tm-track::before {
        right: auto;
        bottom: 28px;
    }
    .tm-track::after {
        height: calc((100% - 56px) * var(--progress, 0));
        transition: height 0.9s cubic-bezier(.2, .7, .2, 1);
    }
    html:not(.tibs-motion) .tm-track::after {
        width: 2px;
        height: calc(100% - 56px);
    }
    .tm-step {
        grid-template-columns: 56px minmax(0, 1fr);
        justify-items: start;
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.15rem;
        padding: 0;
        text-align: left;
    }
    .tm-step-dot {
        grid-row: span 2;
    }
    .tm-step > span:last-child {
        max-width: none;
    }
}

/* ---- Bars that grow when seen ---- */
.tibs-motion [data-motion="grow"] .tm-grow-x {
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.tibs-motion [data-motion="grow"] .tm-grow-y {
    transform-origin: center bottom;
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.tibs-motion [data-motion="grow"]:not(.is-in) .tm-grow-x {
    transform: scaleX(0);
}

.tibs-motion [data-motion="grow"]:not(.is-in) .tm-grow-y {
    transform: scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tibs-motion [data-motion="reveal"]:not(.is-in) {
        opacity: 1;
        transform: none;
    }
    .tibs-motion [data-motion="reveal"],
    .tm-step-dot,
    .tm-track::after,
    .tibs-motion [data-motion="grow"] .tm-grow-x,
    .tibs-motion [data-motion="grow"] .tm-grow-y {
        transition: none;
    }
    .tibs-motion [data-motion="grow"]:not(.is-in) .tm-grow-x,
    .tibs-motion [data-motion="grow"]:not(.is-in) .tm-grow-y {
        transform: none;
    }
}

/* ==========================================================================
   Shared sections on product and service pages
   ========================================================================== */

/* ---- FAQ ---- */
.erp-faq-section {
    background: #fff;
    border-top: 1px solid var(--border-color, #E3E5F0);
}

.erp-faq-section .section-header {
    text-align: left;
    max-width: none;
    margin: 0 0 1.5rem;
}

.faq-accordion-item > summary::after {
    content: '+';
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    opacity: 1;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--product-color, #7948E5);
    transition: transform 0.3s ease;
}

.faq-accordion-item[open] > summary::after {
    transform: rotate(45deg);
}

.faq-accordion-item > summary:focus-visible {
    outline: 2px solid #3862F9;
    outline-offset: 4px;
}

.faq-accordion-item > p {
    max-width: 70ch;
}

/* ---- Other products: compact cards with the logo on the left ---- */
.other-products-section {
    background: #FAFAFC;
    border-top: 1px solid var(--border-color, #E3E5F0);
}

.other-products-section > .section-container > .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.other-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.other-product-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: center;
    text-align: left;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--border-color, #E3E5F0);
}

.other-product-card:hover {
    box-shadow: 0 16px 36px rgba(18, 8, 153, 0.08);
}

.other-product-logo {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin: 0;
}

.other-product-info h3 {
    margin: 0;
}

.other-product-info p {
    margin: 0.15rem 0 0;
}

.other-product-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
}

/* ---- Closing call to action band ---- */
.tm-cta-band {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: #0A0820;
    color: #fff;
}

.tm-cta-band::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 180%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--product-color, #3862F9) 35%, transparent), transparent 70%);
    pointer-events: none;
}

.tm-cta-band .section-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.tm-cta-band h2 {
    margin: 0 0 0.5rem;
    color: #fff;
}

.tm-cta-band p {
    margin: 0;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 760px) {
    .tm-cta-band .section-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Hero screens: a tilted app screen with a floating detail card
   ========================================================================== */

.tm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.tm-shots {
    position: relative;
    min-height: 380px;
    perspective: 1600px;
}

.tm-shot-main {
    position: absolute;
    top: 0;
    left: 4%;
    width: 112%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px rgba(18, 8, 153, 0.45);
    opacity: 0.85;
    transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
    transform-origin: left center;
    -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 90%), linear-gradient(to bottom, #000 50%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(100deg, #000 40%, transparent 90%), linear-gradient(to bottom, #000 50%, transparent 95%);
    mask-composite: intersect;
}

.tm-shot-main img,
.tm-shot-card img {
    display: block;
    width: 100%;
    height: auto;
}

.tm-shot-card {
    position: absolute;
    left: -3%;
    bottom: 4%;
    width: 64%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(10, 8, 32, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: rotate(-2deg);
}

.tibs-motion .tm-shot-main {
    animation: tm-rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.tibs-motion .tm-shot-card {
    animation: tm-card-in 1.2s 0.5s cubic-bezier(.2, .7, .2, 1) both, tm-float 6s 1.7s ease-in-out infinite;
}

@keyframes tm-rise {
    from { opacity: 0; transform: rotateY(-26deg) rotateX(12deg) translateY(40px); }
}

@keyframes tm-card-in {
    from { opacity: 0; transform: rotate(-6deg) translateY(40px); }
}

@keyframes tm-float {
    50% { transform: rotate(-2deg) translateY(-8px); }
}

@media (max-width: 968px) {
    .tm-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tm-shots {
        min-height: 0;
        aspect-ratio: 16 / 11;
        overflow: hidden;
    }
    .tm-shot-main {
        left: 0;
        width: 100%;
        transform: none;
    }
}

/* ==========================================================================
   Modules: a list on the left, a sticky screen that follows the one in view
   ========================================================================== */

.tm-modules {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 4rem;
}

.tm-module {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border-color, #E3E5F0);
    transition: opacity 0.5s;
}

.tm-module:first-child {
    border-top: 0;
    padding-top: 0;
}

.tibs-motion .tm-module {
    opacity: 0.45;
}

.tibs-motion .tm-module.is-active {
    opacity: 1;
}

.tm-module-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.tm-module-head h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.tm-module-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F0F2FA;
    color: var(--product-color, #120899);
    transition: background 0.5s, color 0.5s;
}

.tm-module-icon svg {
    width: 22px;
    height: 22px;
}

.tm-module.is-active .tm-module-icon {
    background: var(--product-color, #120899);
    color: #fff;
}

.tm-module > p {
    margin: 0 0 1rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tm-module ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-module li {
    position: relative;
    padding: 4px 0 4px 18px;
    font-size: 0.9rem;
}

.tm-module li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--product-color, #7948E5);
}

.tm-module-shot {
    display: none;
}

.tm-device {
    position: sticky;
    top: 15vh;
    height: 70vh;
    max-height: 560px;
}

.tm-device-frame {
    position: relative;
    height: 100%;
    padding: 34px 10px 10px;
    border-radius: 18px;
    background: #0A0820;
    box-shadow: 0 40px 90px rgba(18, 8, 153, 0.18);
    overflow: hidden;
}

.tm-device-frame::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 16px;
    width: 44px;
    height: 9px;
    background:
        radial-gradient(circle at 4px 4.5px, #ff5f56 4px, transparent 4.5px),
        radial-gradient(circle at 20px 4.5px, #ffbd2e 4px, transparent 4.5px),
        radial-gradient(circle at 36px 4.5px, #27c93f 4px, transparent 4.5px);
}

.tm-device-url {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font: 500 0.72rem/18px ui-monospace, Menlo, monospace;
    white-space: nowrap;
}

.tm-device-panes {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #F0F2FA;
}

.tm-device-pane {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04) translateY(12px);
    transition: opacity 0.7s, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.tm-device-pane.is-on {
    opacity: 1;
    transform: none;
}

.tm-device-pane img {
    display: block;
    width: 125%;
    max-width: none;
    height: auto;
    animation: tm-pan 14s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.tm-device-pane.is-on img {
    animation-play-state: running;
}

@keyframes tm-pan {
    to { transform: translate(-14%, -8%); }
}

.tm-device-pane::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #F0F2FA);
    pointer-events: none;
}

/* A module without a screenshot shows its icon and name */
.tm-device-blank {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    height: 100%;
    color: var(--product-color, #120899);
    font-family: 'Acari Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.tm-device-blank svg {
    width: 72px;
    height: 72px;
    opacity: 0.85;
}

.tm-device-dots {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 6px;
}

.tm-device-dots i {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(18, 8, 153, 0.2);
    transition: width 0.4s, background 0.4s;
}

.tm-device-dots i.is-on {
    width: 20px;
    background: var(--product-color, #120899);
}

@media (max-width: 900px) {
    .tm-modules {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .tm-device {
        display: none;
    }
    .tibs-motion .tm-module {
        opacity: 1;
    }
    .tm-module-shot {
        display: block;
        height: 170px;
        margin-top: 1.25rem;
        overflow: hidden;
        border-radius: 12px;
        border: 1px solid var(--border-color, #E3E5F0);
        -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
        mask-image: linear-gradient(to bottom, #000 40%, transparent);
    }
    .tm-module-shot img {
        display: block;
        width: 140%;
        max-width: none;
        height: auto;
    }
}

.hub-benefit--left {
    text-align: left;
}

/* Big light numbers for three-up benefits */
.tm-benefit-number {
    display: block;
    margin: 0 0 0.75rem;
    font-family: 'Acari Sans', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--product-color, #120899);
}

@media (prefers-reduced-motion: reduce) {
    .tibs-motion .tm-shot-main,
    .tibs-motion .tm-shot-card,
    .tm-device-pane img {
        animation: none;
    }
    .tm-module,
    .tm-module-icon,
    .tm-device-pane,
    .tm-device-dots i {
        transition: none;
    }
}

/* ==========================================================================
   Hero visuals of the generic product page (template-parts/hero-visual/)
   ========================================================================== */

.tm-hero-visual-slot {
    min-width: 0;
}

/* Websites: phone next to the tilted desktop shot */
.tm-shots--site .tm-shot-phone {
    position: absolute;
    right: -2%;
    bottom: 2%;
    width: 26%;
    aspect-ratio: 360 / 640;
    overflow: hidden;
    border-radius: 22px;
    border: 5px solid #14122E;
    box-shadow: 0 30px 70px rgba(10, 8, 32, 0.6);
}

.tm-shots--site .tm-shot-phone img {
    display: block;
    width: 100%;
    height: auto;
}

/* API: a terminal */
.tm-term {
    border-radius: 14px;
    overflow: hidden;
    background: #0d0b24;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 100px rgba(18, 8, 153, 0.45);
}

.tm-term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #14122E;
}

.tm-term-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f56;
}

.tm-term-bar i:nth-child(2) { background: #ffbd2e; }
.tm-term-bar i:nth-child(3) { background: #27c93f; }

.tm-term-bar span {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    font: 500 0.72rem/1 ui-monospace, Menlo, monospace;
}

.tm-term-body {
    margin: 0;
    padding: 1.1rem 1.2rem 1.3rem;
    min-height: 330px;
    overflow-x: auto;
    color: #d6dbff;
    font: 0.8rem/1.6 'JetBrains Mono', ui-monospace, Menlo, monospace;
    white-space: pre;
}

.tm-term-line {
    transition: opacity 0.35s;
}

@media (max-width: 480px) {
    .tm-term-body {
        font-size: 0.66rem;
        padding: 0.9rem;
    }
}

.tm-term-line.is-hidden {
    opacity: 0;
}

.tm-term-prompt {
    color: #3bedcb;
}

.tm-term-ok {
    color: #5DED9A;
}

.tm-term-json {
    color: #b8c4ff;
}

/* POS: a receipt that prints in */
.tm-receipt-wrap {
    position: relative;
    display: grid;
    justify-items: center;
}

.tm-receipt-soon {
    position: absolute;
    top: -0.8rem;
    right: 18%;
    z-index: 1;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #7948E5;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tm-receipt {
    display: grid;
    gap: 0.35rem;
    width: min(320px, 100%);
    padding: 1.4rem 1.3rem 1.6rem;
    background: #fdfcf8;
    color: #1f1d33;
    font: 0.82rem/1.45 'JetBrains Mono', ui-monospace, Menlo, monospace;
    box-shadow: 0 40px 100px rgba(10, 8, 32, 0.5);
    /* Zigzag bottom edge: two masks, kept only where both are opaque */
    -webkit-mask-image: linear-gradient(-45deg, transparent 6px, #000 6px), linear-gradient(45deg, transparent 6px, #000 6px);
    -webkit-mask-size: 12px 100%;
    -webkit-mask-position: bottom;
    -webkit-mask-repeat: repeat-x;
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(-45deg, transparent 6px, #000 6px), linear-gradient(45deg, transparent 6px, #000 6px);
    mask-size: 12px 100%;
    mask-position: bottom;
    mask-repeat: repeat-x;
    mask-composite: intersect;
}

.tm-receipt hr {
    width: 100%;
    margin: 0.3rem 0;
    border: 0;
    border-top: 1px dashed #b7b4c7;
}

.tm-receipt-title {
    text-align: center;
}

.tm-receipt-sub,
.tm-receipt-foot {
    text-align: center;
    color: #6B6F8A;
    font-size: 0.74rem;
}

.tm-receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tm-receipt-total {
    font-weight: 700;
}

.tm-receipt-code {
    height: 34px;
    margin-top: 0.5rem;
    background: repeating-linear-gradient(90deg, #1f1d33 0 2px, transparent 2px 4px, #1f1d33 4px 5px, transparent 5px 8px);
}

.tibs-motion .tm-receipt {
    animation: tm-print 2.6s steps(14, end) both;
}

@keyframes tm-print {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* SVC: services slide in as a stack */
.tm-svc-stack {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-svc-stack li a {
    display: block;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.tm-svc-stack li a:hover {
    background: rgba(56, 98, 249, 0.25);
    transform: translateX(4px);
}

.tibs-motion .tm-svc-stack li {
    animation: tm-slide 0.7s calc(var(--i) * 90ms) cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes tm-slide {
    from { opacity: 0; transform: translateX(24px); }
}

.tm-feature-card {
    border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .tibs-motion .tm-receipt,
    .tibs-motion .tm-svc-stack li {
        animation: none;
    }
    .tm-term-line {
        transition: none;
    }
}

/* ==========================================================================
   Service hero: the service's own steps in a card
   ========================================================================== */

.svc-roadmap {
    width: min(420px, 100%);
    margin-left: auto;
    padding: 1.4rem 1.5rem 1.2rem;
    border-radius: 18px;
    background: #fff;
    color: #14122E;
    box-shadow: 0 40px 100px rgba(10, 8, 32, 0.35);
}

.svc-roadmap-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    font-family: 'Acari Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.svc-roadmap-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--service-color, #120899);
    color: #fff;
}

.svc-roadmap-icon svg {
    width: 22px;
    height: 22px;
}

.tm-step-dot b {
    font-family: 'Acari Sans', sans-serif;
    font-size: 0.95rem;
}

/* The vertical layout of the track at every width */
.tm-track--vertical {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.tm-track--vertical::before,
.tm-track--vertical::after {
    left: 21px;
    top: 22px;
    width: 2px;
    height: auto;
}

.tm-track--vertical::before {
    right: auto;
    bottom: 22px;
}

.tm-track--vertical::after {
    width: 2px;
    height: calc((100% - 44px) * var(--progress, 0));
    background: linear-gradient(180deg, #120899, #3862F9, #3bedcb);
    transition: height 0.9s cubic-bezier(.2, .7, .2, 1);
}

html:not(.tibs-motion) .tm-track--vertical::after {
    width: 2px;
    height: calc(100% - 44px);
}

.tm-track--vertical .tm-step {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    column-gap: 0.9rem;
    row-gap: 0.1rem;
    padding: 0;
    text-align: left;
}

.tm-track--vertical .tm-step-dot {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.tm-track--vertical .tm-step strong {
    font-size: 0.95rem;
}

.tm-track--vertical .tm-step > span:last-child {
    max-width: none;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    /* Under the text, not above it as the old icon was */
    .service-hero-full .hero-visual:has(.svc-roadmap) {
        order: 0;
    }
    .svc-roadmap {
        margin: 0 auto;
        text-align: left;
    }
}
